Update an existing frontline user
A User resource represents a frontline user.
Update an existing frontline user
Path parameters
-
The SID of the User resource to update. This value can be either the
sid
or theidentity
of the User resource to update.
Body
-
The string that you assigned to describe the User.
-
The avatar URL which will be shown in Frontline application.
-
Current state of this user. Can be either
active
ordeactivated
and defaults toactive
Values are
active
ordeactivated
. -
Whether the User is available for new conversations. Set to
false
to prevent User from receiving new inbound conversations if you are using Pool Routing.
POST
/v1/Users/{Sid}
curl \
--request POST 'https://frontline-api.twilio.com/v1/Users/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'State=active&Avatar=https%3A%2F%2Fexample.com%2Favatar.png&IsAvailable=true&FriendlyName=Name'
Request example
{"State"=>"active", "Avatar"=>"https://example.com/avatar.png", "IsAvailable"=>true, "FriendlyName"=>"Name"}
Response examples (200)
{
"sid": "USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://frontline-api.twilio.com/v1/Users/USaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"state": "active",
"avatar": "https://example.com/profile.png",
"identity": "john@example.com",
"is_available": true,
"friendly_name": "John Doe"
}