Body
Required
-
customId
string A custom identifier for internal reference by your system (not used by missionX).
-
title
string Required The name of the department.
-
description
string An optional description for the department.
POST
/orgs/departments
curl \
--request POST 'https://open.api.missionx.ai/v1/orgs/departments' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"customId":"string","title":"string","description":"string"}'
Request examples
{
"customId": "string",
"title": "string",
"description": "string"
}
Response examples (200)
{
"_id": "string",
"customId": "string",
"title": "string",
"description": "string"
}
Response examples (400)
{
"message": "string",
"code": "string",
"data": {}
}
Response examples (500)
{
"message": "string",
"code": "string",
"data": {}
}