Update Rooftop
Updates a rooftop's name, address or website URL. Send only the fields you want to change.
PATCH
AuthBearer token
Body parameters
- team_id (string, required): the rooftop to update.
- enterprise_id (string, optional): the dealer the rooftop belongs to. If you leave it out, it's found from
team_id. - team_name (string, optional): the new name.
- address (object, optional): any of
address_line,city,state,country,pin_code, all strings. Only the keys you send are changed. - website_url (string, optional): the rooftop's website.
Send at least one of team_name, address or website_url.
Sample request
curl --request PATCH \
--url 'https://api.spyne.ai/api/pv1/enterprise/update-team' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"team_id": "<team_id>",
"address": {
"address_line": "1200 Main St",
"city": "Austin",
"state": "TX",
"pin_code": "78701"
},
"website_url": "https://www.acmemotors.com"
}'curl --request PATCH \
--url 'https://api.spyne.ai/api/pv1/enterprise/update-team' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"team_id": "<team_id>",
"team_name": "New Rooftop Name"
}'Sample response
{
"message": "Updated Successfully",
"data": {
"enterpriseId": "<enterprise_id>",
"teamId": "<team_id>",
"teamName": "Main Rooftop",
"address": {
"address_line": "1200 Main St",
"city": "Austin",
"state": "TX",
"pin_code": "78701"
},
"websiteLink": "https://www.acmemotors.com"
}
}{
"message": "Team name updated successfully!"
}Response parameters
| Parameter | Type | Description |
|---|---|---|
| message | string | Confirmation that the rooftop was updated. |
| data | object | Returned for address or website updates. Echoes the fields that were applied. |
Errors
| Status code | Description |
|---|---|
| 400 | Nothing to update, an invalid address, or no partner account is mapped to your token's enterprise. |
| 401 | Missing or invalid token. |
| 404 | No rooftop under your partner account matches team_id, or enterprise_id doesn't own it. |
| 500 | Unexpected server error. |
Updated 7 days ago
Did this page help you?
