API reference
Set availability
Change working days and same-day availability across the talent's client profiles.
PUT
/api/v1/availabilityaccount:writeMCP: availability_setIdempotency key required
Request
Examples use sample IDs and upload handles. Replace them with values returned for your assigned work before making a call. Set a new request ID for a new action; reuse it only for the same input on a retry.
curl -X PUT 'https://talent.radioworkflow.com/api/v1/availability' \
-H "Authorization: Bearer $TALENT_API_KEY" \
-H 'Idempotency-Key: replace_with_a_unique_request_id' \
-H 'Content-Type: application/json' \
-d '{"days":[1,2,3,4,5],"same_day":true}'Request fields
All requests use a bearer API key. Include Idempotency-Key: 8 to 48 letters, digits, underscores or hyphens. MCP uses the same value in request_id. Send body fields as application/json.
daysbodyRequiredinteger[]
Max items: 7
same_daybodyRequiredboolean
Complete request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"days": {
"maxItems": 7,
"type": "array",
"items": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
},
"same_day": {
"type": "boolean"
}
},
"required": [
"days",
"same_day"
],
"additionalProperties": false
}Response
HTTP 200 returns a JSON object. Read ok before using its fields. IDs are decimal strings, instants are Unix seconds, and a missing value is null. A replayed write includes replayed: true.
- ok
- true
- api_version
- "1"
- replayed
- true
- days
- integer[]
- same_day
- boolean
- rows_updated
- integer
Complete response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"ok": {
"type": "boolean",
"const": true
},
"api_version": {
"type": "string",
"const": "1"
},
"replayed": {
"type": "boolean",
"const": true
},
"days": {
"maxItems": 7,
"type": "array",
"items": {
"type": "integer",
"minimum": 1,
"maximum": 7
}
},
"same_day": {
"type": "boolean"
},
"rows_updated": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"ok",
"api_version",
"days",
"same_day",
"rows_updated"
],
"additionalProperties": false
}