typeOfWork

Creates a type of work.

Changed on

Creates a type of work. It can then be selected on time entries.

<Check title="Required Permissions" icon="key">The user must be an admin or have task-manage-config:write permissions.</Check>

post/typeofwork

Request

  • Base URL: https://api.awork.com/api/v1
  • URL: https://api.awork.com/api/v1/typeofwork
  • Auth: HTTP bearer

Request body

namestring required

The names of the type of work.

descriptionstring nullable

A short description of the type of work.

iconstring nullable

The icon associated with this task type.

Response

OK

idstring uuid

The id of the task type.

namestring nullable

The name of the task type.

descriptionstring nullable

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

iconstring nullable

The icon associated with this task type.

isArchivedboolean

Whether the type of work has been archived.

createdOnstring date-time

The date this entity was created.

createdBystring uuid

The id of the user who created this entity.

updatedOnstring date-time

The date this entity was last modified.

updatedBystring uuid

The id of the user who last modified this entity.

Changes

    • warning

      deleted the header request parameter Authorization

    • info

      the endpoint scheme security oauth2 was added to the API

    • info

      api operation id PostTypesOfWork removed and replaced with typeOfWork_PostTypesOfWork