Skip to content
vocapable.Docs

Publish drafts to agents

POST
/v1/workspace/contact-center/wfm/schedule/publish
curl --request POST \
--url https://api.vocapable.com/v1/workspace/contact-center/wfm/schedule/publish \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "start": "2026-04-15", "days": 7, "team_id": "example", "user_ids": [ "example" ] }'
Idempotency-Key
Any of:
string

Unique key for this request, so a retry replays the original result instead of repeating the work. Stored for 24 hours; a replayed response carries Idempotent-Replay: true. A UUID is the documented shape.

Media typeapplication/json
CcWfmPublish
object
start
required
Start
string format: date
days
Days
integer
default: 7 >= 1 <= 28
team_id
Any of:
string
>= 1 characters <= 96 characters /^[A-Za-z0-9_:-]+$/
user_ids
Any of:
Array<string>
<= 500 items

Successful Response

Media typeapplication/json
CcWfmPublication
object
id
required
Id
string
shifts_published
required
Shifts Published
integer
agents_notified
required
Agents Notified
integer
published_at
required
Published At
string format: date-time
Examplegenerated
{
"id": "example",
"shifts_published": 1,
"agents_notified": 1,
"published_at": "2026-04-15T12:00:00Z"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}