curl --request PATCH \
--url https://api.plane.com/v1/locations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"address": {
"address.line1": "<string>",
"address.line2": "<string>",
"address.city": "<string>",
"address.state": "<string>",
"address.postal_code": "<string>",
"address.country": "<string>"
}
}
'{
"id": "loc_cNqYX2J3s9bI2Aa",
"name": "SF Headquarters",
"address": {
"line1": "123 Main Street",
"line2": null,
"city": "Oakland",
"state": "CA",
"postal_code": "94612",
"country": "US"
},
"created": "2024-01-15T00:00:00Z",
"updated": "2024-02-10T00:00:00Z"
}
Update the name and/or address of an existing work location.
curl --request PATCH \
--url https://api.plane.com/v1/locations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"address": {
"address.line1": "<string>",
"address.line2": "<string>",
"address.city": "<string>",
"address.state": "<string>",
"address.postal_code": "<string>",
"address.country": "<string>"
}
}
'{
"id": "loc_cNqYX2J3s9bI2Aa",
"name": "SF Headquarters",
"address": {
"line1": "123 Main Street",
"line2": null,
"city": "Oakland",
"state": "CA",
"postal_code": "94612",
"country": "US"
},
"created": "2024-01-15T00:00:00Z",
"updated": "2024-02-10T00:00:00Z"
}
Show child attributes
null to clear it.{
"id": "loc_cNqYX2J3s9bI2Aa",
"name": "SF Headquarters",
"address": {
"line1": "123 Main Street",
"line2": null,
"city": "Oakland",
"state": "CA",
"postal_code": "94612",
"country": "US"
},
"created": "2024-01-15T00:00:00Z",
"updated": "2024-02-10T00:00:00Z"
}
Was this page helpful?