Einpix API documentation
  1. Task
Einpix API documentation
  • Changelog
  • About
  • API
    • Task
      • Create
        POST
      • List
        GET
      • Detail
        GET
      • Change status
        PUT
    • Checklist
      • By task
    • Client
      • List
      • Detail
    • User
      • List
      • Detail
    • Venue
      • Create
      • List
      • Detail
    • Category
      • Task
        • List
        • Detail
    • Tag
      • List
      • Detail
    • Template
      • Checklist
        • List
        • Detail
    • Equipment
      • List
      • Detail
    • Comment
      • Create
      • Detail
    • Worklog
      • List
      • Hisory
    • Materials
      • By task
    • Service
      • By task
  • Schemas
    • User
    • Venue
    • Task
    • Task comment
    • Tag
    • Task category
    • Picture
    • Check item
    • Equipment
    • Client
    • Task severity
    • Attachment
    • Changed log
    • User group
    • WDJ material
    • Unit master
    • WDJ service
    • Worklog History
    • Checklist template
    • Worklog
    • Activity task
    • Downtime task
    • Sla rule
  1. Task

Change status

Developing
PUT
task/{taskId}/change-status
This API allows clients to update the status of a task while enforcing business workflow rules. A task can only transition between specific statuses depending on its current state.
Allowed Status Transitions
If current status = new
Allowed transitions:
in-progress
canceled
declined
If current status = in-progress
Allowed transitions:
done
canceled
declined
If current status = done
Allowed transition:
new (re-open)
If current status = declined
Allowed transition:
new (re-open)
If current status = canceled
Allowed transition:
re-open (new)

Request

Path Params

Header Params

Body Params application/json

Example
{
    "actor": 0,
    "old": "new",
    "new": "new",
    "reason": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.einpix.com/public/v1/task//change-status' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "actor": 0,
    "old": "new",
    "new": "new",
    "reason": "string"
}'

Responses

🟢200Success
application/json
Body

Example
{}
Modified at 2025-09-18 07:19:36
Previous
Detail
Next
By task
Built with