Create a Reason

post

/api/restapi/reason

Send a request to this endpoint to create a reason.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : ApiEntityReasonInput
Type: object
Title: ApiEntityReasonInput
This entity represents a Reason object, a unique Reason object can be identified by the following combinations of the fields.
  • reasonId
  • reasonName,workspaceId
  • reasonName,workspaceCode
Show Source
  • Minimum Length: 1
    Maximum Length: 60
    The abbreviation of the reason for recommitting to a task.
  • appliesTo
    Indicates the type of object the reason is associated to.
  • Read Only: true
    Allowed Values: [ "OWNED", "INHERITED" ]
    Deprecated. As of 23.12.
    The type of association in the relationship between the reason and the workspace. Possible values are Owned and Inherited.
  • Read Only: true
    Deprecated. As of 23.10.
    The self-link to the object. This field is populated only in the responses generated by the batch create APIs.
  • Allowed Values: [ "MANUAL", "AUTOMATIC" ]
    How data is shared between parent and child workspaces.
    Manual: Data can be pulled down by child workspaces. This is the default option.
    Automatic: Data is automatically shared with all child workspaces.
  • The unique identifier of a reason.
  • Minimum Length: 1
    Maximum Length: 255
    The name of the reason for recommitting to a task.
  • Read Only: true
    Deprecated. As of 23.10.
    Date when the record was last updated.
  • Minimum Length: 0
    Maximum Length: 60
    The user-specified identifier of a workspace.
  • The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Nested Schema : appliesTo
Type: array
Indicates the type of object the reason is associated to.
Show Source
Examples

Back to Top

Response

Supported Media Types

201 Response

The object was successfully created.
Body ()
Root Schema : ApiEntityReason
Type: object
Title: ApiEntityReason
Show Source
  • Minimum Length: 1
    Maximum Length: 60
    The abbreviation of the reason for recommitting to a task.
  • appliesTo
    Indicates the type of object the reason is associated to.
  • Allowed Values: [ "OWNED", "INHERITED" ]
    The type of association in the relationship between the reason and the workspace. Possible values are Owned and Inherited.
  • Allowed Values: [ "MANUAL", "AUTOMATIC" ]
    How data is shared between parent and child workspaces.
    Manual: Data can be pulled down by child workspaces. This is the default option.
    Automatic: Data is automatically shared with all child workspaces.
  • The unique identifier of a reason.
  • Minimum Length: 1
    Maximum Length: 255
    The name of the reason for recommitting to a task.
  • Date when the record was last updated.
  • Minimum Length: 0
    Maximum Length: 60
    The user-specified identifier of a workspace.
  • The unique identifier for the workspace.The workspace object can also be identified by its unique criteria.
Nested Schema : appliesTo
Type: array
Indicates the type of object the reason is associated to.
Show Source

400 Response

Invalid input for a baseline reason.
Back to Top