Update a Host

patch
Update a Host

https://api.w3lcome.com/v1/host/:id
This endpoint allows you to update a host
Request
Response
Request
Path Parameters
id
required
string
ID of the host
Headers
Content-Type
required
string
application/JSON
Authentication
required
string
Basic token
Body Parameters
name
optional
string
role
optional
string
metadata
optional
object
isActive
optional
boolean
additionalEmails
optional
string
Emails separated by space
pictureUrl
optional
string
position
optional
string
sector
optional
string
phone
optional
string
countryCode
optional
string
message
optional
string
Response
200: OK
Success
{
"id": "5d13bad4ae9c50948f6edd67a16d6936",
"email": "alisson@w3lcome.com",
"name": "Alisson Enz Rossi",
"isActive": true,
"pictureUrl": "",
"position": "CTO",
"sector": "IT",
"phone": "(43) 9 9982-0420",
"countryCode": "+55",
"isPhoneValid": true,
"company": "W3lcome",
"type": "host",
"message": "HOST UPDATED",
"role": "manager"
}
400: Bad Request
Error
{
"type": "CANNOT_CHANGE_HOST_EMAIL"
}