Skip to content

Create a tenant-owned human-rep group

POST
/v1/rep-groups
curl --request POST \
--url https://api.vocapable.com/v1/rep-groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "selection_strategy": "first_available" }'
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
RepGroupCreateRequest
object
name
required
Name
string
>= 1 characters <= 200 characters
selection_strategy
Selection Strategy
string
default: first_available
Allowed value: first_available

Successful Response

Media typeapplication/json
RepGroup
object
id
required
Id
string
name
required
Name
string
selection_strategy
required
Selection Strategy
string
Allowed value: first_available
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Example
{
"selection_strategy": "first_available"
}

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": {}
}
]
}