Skip to main content
POST
/
api
/
admin
/
staff-permissions
Update staff role permissions
curl --request POST \
  --url https://api.propops.app/api/admin/staff-permissions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "permissions": [
    {
      "role_id": 1,
      "permission_key": "api.jobs.manage.manage",
      "permission_value": true
    }
  ],
  "csrf_token": "abc123def456"
}
'
{
  "success": true,
  "message": "Operation completed successfully",
  "updated_count": 15
}

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
permissions
object[]
required
csrf_token
string
required
Example:

"abc123def456"

Response

Permissions updated

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"

updated_count
integer
Example:

15