Skip to main content
POST
/
v1
/
scheduling
/
deputy
/
operational-units
Sync operational units from Deputy
curl --request POST \
  --url http://localhost:3000/v1/scheduling/deputy/operational-units
{
  "success": true,
  "results": [
    {
      "staffId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "email": "<string>",
      "name": "<string>",
      "deputyId": 123,
      "operational_units": [
        "<string>"
      ],
      "status": "<string>"
    }
  ],
  "errors": [
    {
      "error": "<string>",
      "deputyId": 123,
      "name": "<string>",
      "email": "<string>"
    }
  ],
  "summary": {
    "total_units": 123,
    "unit_names": [
      "<string>"
    ],
    "staff_processed": 123,
    "staff_updated": 123,
    "errors": 123
  },
  "error": "<string>"
}

Response

200 - application/json

Sync results

success
boolean
required
results
object[]
required
errors
object[]
required
summary
object
error
string