Update an office
This endpoint lets you update existing offices for a given id.
office update
PUT
https://www.welcomekit.co/api/v1/external/offices/:id
Path Parameters
Name
Type
Description
id*
string
Office ID
Query Parameters
Name
Type
Description
name
string
Name
address
string
Address
zip_code
string
Zip code
city
string
City
country_code
string
Country code
is_headquarter
boolean
Office is organization headquarter?
{
"id": 42,
"name": "France",
"address": "11 bis rue Bachaumont",
"zip_code": "75002",
"city": "Paris",
"country_code": "FR",
"is_headquarter": true
}
Request example
curl -X PUT "https://www.welcomekit.co/api/v1/external/offices/:id" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer WK_API_KEY" \
-d @- <<EOF
{
"name": "France"
}
EOF
Last updated
Was this helpful?