TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

PUT api/2.0/project/statuses This function requires authentication

Description

Updates the task statuses with the values specified in the request.

Parameters
Name Description Type Example
statuses
sent in body
New task statuses System.Collections.Generic.List{ASC.Web.Projects.CustomTaskStatus}
Example
PUT api/2.0/project/statuses
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "statuses": [
    {
      "StatusType": 1,
      "CanChangeAvailable": true,
      "Id": 12,
      "Image": "Image",
      "ImageType": "ImageType",
      "Title": "Title",
      "Description": "Description",
      "Color": "Color",
      "Order": 1,
      "IsDefault": true,
      "Available": true
    }
  ]
}
Returns

Updated task statuses

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "StatusType": 1,
      "CanChangeAvailable": true,
      "Id": 12,
      "Image": "Image",
      "ImageType": "ImageType",
      "Title": "Title",
      "Description": "Description",
      "Color": "Color",
      "Order": 1,
      "IsDefault": true,
      "Available": true
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <StatusType>1</StatusType>
    <CanChangeAvailable>True</CanChangeAvailable>
    <Id>12</Id>
    <Image>Image</Image>
    <ImageType>ImageType</ImageType>
    <Title>Title</Title>
    <Description>Description</Description>
    <Color>Color</Color>
    <Order>1</Order>
    <IsDefault>True</IsDefault>
    <Available>True</Available>
  </response>
</result>