Archives or unarchives the type of work with the specified id.

POST

Archives or unarchives the type of work with the specified id. An archived type of work still exists for all tasks and time entries currently using it, but can no longer be created with this type of work.

Required Permissions: The user must be an admin or have workspace-manage-config:write permissions.

Path parameters

typeOfWorkIdstringRequired

Id of the type of work which will be archived.

Request

This endpoint expects an object.
isArchivedbooleanRequired

Flags the entity as archived.

Response

OK

idstringOptional

The id of the task type.

namestringOptional

The name of the task type.

descriptionstringOptional

A short (max. 140 characters) description of the task type.

iconstringOptional

The icon associated with this task type.

isArchivedbooleanOptional

Whether the type of work has been archived.

createdOndatetimeOptional

The date this entity was created.

createdBystringOptional

The id of the user who created this entity.

updatedOndatetimeOptional

The date this entity was last modified.

updatedBystringOptional

The id of the user who last modified this entity.