Skip to content
Pitch2SaleDevelopers
Open the app
Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.

PUT /user-presence/me

PUT
/api/v1/user-presence/me
curl --request PUT \
--url https://api.pitch2sale.com/api/v1/user-presence/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "available_for_voice_transfer": true, "transfer_phone": "example", "working_hours_start_local": "example", "working_hours_end_local": "example", "working_days": [ 1 ], "timezone": "example", "skills": [ "example" ], "max_concurrent_transfers": 1 }'
Media typeapplication/json
object
available_for_voice_transfer
boolean
transfer_phone
Any of:
string
/^\+[1-9]\d{6,14}$/
working_hours_start_local
string
/^([01]\d|2[0-3]):[0-5]\d$/
working_hours_end_local
string
/^([01]\d|2[0-3]):[0-5]\d$/
working_days
Array<integer>
<= 7 items
timezone
string
>= 1 characters <= 100 characters
skills
Array<string>
<= 25 items
max_concurrent_transfers
integer
>= 1 <= 10
Examplegenerated
{
"available_for_voice_transfer": true,
"transfer_phone": "example",
"working_hours_start_local": "example",
"working_hours_end_local": "example",
"working_days": [
1
],
"timezone": "example",
"skills": [
"example"
],
"max_concurrent_transfers": 1
}

OK

Validation failed

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Authentication required or token invalid

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Rate limit exceeded

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}