Skip to main content
POST
/
api
/
agents
/
branches
Assign or remove agent branch
curl --request POST \
  --url https://api.propops.app/api/agents/branches \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "assign",
  "agent_uuid": "880e8400-e29b-41d4-a716-446655440001",
  "branch_id": 1,
  "csrf_token": "abc123def456"
}
'
{
  "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
action
enum<string>
required
Available options:
assign,
remove
agent_uuid
string<uuid>
required
Example:

"880e8400-e29b-41d4-a716-446655440001"

branch_id
integer
required
Example:

1

csrf_token
string
required
Example:

"abc123def456"

Response

Branch assignment updated

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"