Timeline ReasonsAssign a timeline reason

Assign a timeline reason

Assigns a timeline reason to a machine, allowing users to track specific operational events such as machine downtimes or other predefined reasons. The assignment can be used for labeling machine status changes in real-time or for historical adjustments.

curl -X POST "https://wm.novoai.de/v2/timeline/reason_assign" \
  -H "Content-Type: application/json" \
  -H "accept: application/json" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-KEY: YOUR_API_KEY" \
  -d '{
  "data": [
    {
      "machine_id": 1,
      "timeline_reason_id": 1,
      "operation": "add",
      "idx": 1
    }
  ]
}'
{
  "message": "Successfully assigned timeline reason.",
  "status": 1
}
POST
/v2/timeline/reason_assign
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.

JWT Bearer token authentication. Include in the Authorization header as Bearer <token>.
API Key (header: X-API-KEY)
X-API-KEYstring
Required

API-Access Key authentication. Include the generated key in the X-API-KEY header.

API-Access Key authentication. Include the generated key in the X-API-KEY header.
Content-Typestring
Required

The media type of the request body

Options: application/json
header
acceptstring
Required

Must be application/json.

header
Content-Typestring
Required

Must be application/json for POST requests.

dataarray
Required

List of assignments.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT Bearer token authentication. Include in the Authorization header as Bearer \<token\>.

header
X-API-KEYstring
Required

API Key for authentication. API-Access Key authentication. Include the generated key in the X-API-KEY header.

Headers

acceptstring
Required

Must be application/json.

Example:
application/json
Content-Typestring
Required

Must be application/json for POST requests.

Example:
application/json

Body

application/json
dataarray
Required

List of assignments.

Responses

messagestring
Required

Success confirmation message.

statusinteger
Required

Indicates the success of the request. 1 for success, 0 for failure.