curl --request POST \
--url https://app.msportal.ai/api/public/v1/goals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priorityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dueDate": "2023-11-07T05:31:56Z",
"progressPercentage": 50,
"quarter": "<string>",
"year": 2050
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"progressPercentage": 50,
"quarter": "<string>",
"year": 123,
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"status": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"priority": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"category": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"tasks": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"isCompleted": true,
"dueDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"updates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updateText": "<string>",
"progressPercentage": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}Create a new goal. The goal will be associated with the specified company.
curl --request POST \
--url https://app.msportal.ai/api/public/v1/goals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"companyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"statusId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"priorityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dueDate": "2023-11-07T05:31:56Z",
"progressPercentage": 50,
"quarter": "<string>",
"year": 2050
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"dueDate": "2023-11-07T05:31:56Z",
"progressPercentage": 50,
"quarter": "<string>",
"year": 123,
"company": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"status": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"priority": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"category": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"tasks": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"description": "<string>",
"isCompleted": true,
"dueDate": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"updates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updateText": "<string>",
"progressPercentage": 123,
"createdAt": "2023-11-07T05:31:56Z"
}
]
}
}Use your API key as a Bearer token. API keys can be generated in Settings → Integrations → API Access.
Goal title (required)
1 - 200Company ID (required)
Goal description
5000Status ID
Priority ID
Category ID
Due date (ISO 8601)
Initial progress (0-100)
0 <= x <= 100Quarter (e.g., Q1)
2Year
2000 <= x <= 2100Goal created successfully
Show child attributes