Add plan to group
Add an existing plan to a plan group with optional sort order.
Add an existing plan to a plan group with optional sort order.
Authorization
ApiKeyAuth x-api-key<token>
In: header
Path Parameters
id*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
planId*string
sortOrder?integer
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/plan-groups/string/plans" \ -H "Content-Type: application/json" \ -d '{ "planId": "string" }'{ "success": true, "data": { "success": true, "object": "plan_group", "livemode": true }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}{ "success": false, "error": { "type": "string", "code": "string", "message": "string", "param": "string", "details": null, "doc_url": "string" }}