POST /works
{{base-api-url}}/tenants/TENANT_ID/works
Headers#
Name | Content |
---|---|
Authorization | {{your-api-key}} |
Content-Type | application/json |
Body#
{
"name": "My work name",
"description": "My work description"
}
Example request#
curl --location -g --request POST '{{base-api-url}}/tenants/TENANT_ID/works' \
--header 'Authorization: Bearer {{your-api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Your new Work's name",
"description": "Your new Work's description text"
}'
Example response#
{
"work": {
"id": "X",
"slug": "my-new-work-s-name",
"name": "My new Work's name",
"description": "My new Work's description",
"createdAt": "2021-06-21T10:30:05Z",
"updatedAt": "2021-06-21T10:30:06Z",
"discardedAt": null,
"owner": {
"firstName": "John",
"lastName": "Doe",
"email": "john@doe.com"
}
}
}