Create Division
POST/api/v1/divisions
Create a new Division
. Requires editor role.
Request
Query Parameters
Possible values: [true
, false
]
Force creation of parent resources if they don't exist
false
- application/json
Body
Body
Name
of the Workspace
Workspace 1
Name
of the Asset
Asset 1
Name
of the Division
Division 1
Description
of the Division
Description
Responses
- 201
- 400
- 401
- 403
- 404
- 409
Success
- application/json
- Schema
- Example (from schema)
Schema
ID
of the Division
Possible values: > 0
1000
Name
of the Division
Division 1
Creation Date
of the Division
2025-08-25T19:29:40.666Z
Update Date
of the Division
2025-08-25T19:29:40.666Z
Description
of the Division
Description
workspace
object
required
ID
of the Workspace
Possible values: > 0
1000
Name
of the Workspace
Workspace 1
asset
object
required
ID
of the Asset
Possible values: > 0
1000
Name
of the Asset
Asset 1
{
"id": 1000,
"name": "Division 1",
"createdAt": "2025-08-25T19:29:40.666Z",
"updatedAt": "2025-08-25T19:29:40.666Z",
"description": "Description",
"workspace": {
"id": 1000,
"name": "Workspace 1"
},
"asset": {
"id": 1000,
"name": "Asset 1"
}
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [Validation Error
]
errors
object[]
required
Possible values: [body
, query
, path
, headers
]
{
"status": "Validation Error",
"errors": [
{
"error": "string",
"location": "body"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Unauthorized
]
{
"status": "Unauthorized"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Forbidden
]
{
"status": "Forbidden"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
oneOf
Workspace not found
Possible values: [Workspace not found
]
Asset not found
Possible values: [Asset not found
]
{}
Division already exists
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Division already exists
]
{
"status": "Division already exists"
}