Skip to main content
POST
/
api
/
agents
/
branch-sla-response-times
Create or update an SLA response time rule
curl --request POST \
  --url https://api.propops.app/api/agents/branch-sla-response-times \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "branch_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "csrf_token": "abc123def456",
  "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "job_status_from_id": 1,
  "job_status_to_id": 3,
  "job_type_id": 3,
  "date_field_to_track": "created_at",
  "date_field_to_compare": "updated_at",
  "job_priority": 123,
  "minimum_response_days": 5,
  "description": "Emergency gas jobs must be actioned within 24 hours."
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
branch_uuid
string<uuid>
required
csrf_token
string
required
Example:

"abc123def456"

uuid
string<uuid>

Rule UUID (for updates)

job_status_from_id
integer
Example:

1

job_status_to_id
integer
Example:

3

job_type_id
integer | null
Example:

3

date_field_to_track
string
Example:

"created_at"

date_field_to_compare
string
Example:

"updated_at"

job_priority
integer | null
minimum_response_days
integer
Example:

5

description
string
Example:

"Emergency gas jobs must be actioned within 24 hours."

Response

Rule created or updated

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"