Skip to main content
PUT
/
sectors
/
:id

Endpoint

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

Path Parameters

NameTypeRequiredDescriptionExample
idstringYesUnique identifier of the sector.SECTOR_12345

Request Body (JSON)

The service receives a wrapper with the property sector. (The environment is handled on the server.)
{
  "sector": {
    "name": "Updated Sector",
    "description": "New description"
  }
}

Example (cURL)

curl -X PUT "https://gateway.orkeia.ai/sectors/SECTOR_12345" \
  -H "authorization:  <your_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "sector": {
      "name": "Updated Sector",
      "description": "New description"
    }
  }'

Responses

Response - Success

response
{
  "status": "OK",
  "data": {
    "id": "SECTOR_12345",
    "name": "Updated Sector",
    "description": "New description"
  }
}

500 — Server Error

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

400 — Client Error

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