curl --request POST \
--url https://api.stax.ai/tpa/plan/create \
--header 'Content-Type: application/json' \
--cookie authToken= \
--data '
{
"planName": "<string>",
"planType": "<string>",
"internalPlanId": "<string>",
"pensionProId": 123,
"endMm": 123,
"endDd": 123,
"active": true,
"directory": "<string>"
}
'{
"success": true,
"plan": {
"_id": "<string>",
"team": "<string>",
"pensionProId": 123,
"internalPlanId": "<string>",
"planName": "<string>",
"planType": "<string>",
"endMm": 123,
"endDd": 123,
"active": true,
"directory": "<string>",
"ppLock": true,
"search": [
"<string>"
],
"notes": [
{
"author": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"content": "<string>"
}
],
"lastModified": "2023-11-07T05:31:56Z",
"assignees": [
"<string>"
],
"status": {}
}
}Create a new TPA plan
curl --request POST \
--url https://api.stax.ai/tpa/plan/create \
--header 'Content-Type: application/json' \
--cookie authToken= \
--data '
{
"planName": "<string>",
"planType": "<string>",
"internalPlanId": "<string>",
"pensionProId": 123,
"endMm": 123,
"endDd": 123,
"active": true,
"directory": "<string>"
}
'{
"success": true,
"plan": {
"_id": "<string>",
"team": "<string>",
"pensionProId": 123,
"internalPlanId": "<string>",
"planName": "<string>",
"planType": "<string>",
"endMm": 123,
"endDd": 123,
"active": true,
"directory": "<string>",
"ppLock": true,
"search": [
"<string>"
],
"notes": [
{
"author": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"content": "<string>"
}
],
"lastModified": "2023-11-07T05:31:56Z",
"assignees": [
"<string>"
],
"status": {}
}
}Cookie-based authentication using userId and authToken cookies
Plan created
Show child attributes
MongoDB ObjectId
MongoDB ObjectId
MongoDB ObjectId