Skip to main content
GET
/
sectors
/
:id
/
history

Endpoint

GET https://gateway.orkeia.ai/sectors/{id}/history Authentication
Requires header authorization: <your_token>.

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesUnique identifier of the sector.SECTOR_12345

Example (cURL)

curl -X GET "https://gateway.orkeia.ai/sectors/SECTOR_12345/history" \
  -H "authorization:  <your_token>"

Responses

Response - Success

response
{
  "status": "OK",
  "data": [
    {
      "id": "hist_001",
      "responsible": "[email protected]",
      "action": "updated sector",
      "type": "neutral",
      "date": "2024-07-22T18:00:00.000Z",
      "changes": { "name": "New name" }
    }
  ]
}

500 — Server Error

{
  "status": "ERROR",
  "code": "server/error",
  "data": null
}

400 — Client Error

{
  "status": "ERROR",
  "code": "client/error",
  "data": null
}

History Fields

NameTypeDescription
idstringUnique identifier of the history event.
responsiblestringName/user responsible for the change.
actionstringRegistered action (e.g., created sector, updated sector, deleted sector).
typestringClassification of the event (success, fail, neutral).
dateDateDate and time of the change.
changesobjectChanges made to the sector fields, when applicable.