API documentation | API docs for agents | OpenAPI 3.1
PATCH /api/v1/locations/{locationId}
ark.update_location
Updates a visible location profile and address fields.
- Availability
- Core preview
- Scopes
locations:write- ARK permissions
canEditLocation- Team visibility
- Required and enforced
- Idempotency-Key
- Required for this write
- Approval
- No MCP approval on REST API-token calls
- Rate limit
- API credential and organization budgets
Parameters
locationIdpathstringrequired- format: uuid
Idempotency-Keyheaderstringrequired- Required for external write operations. Reuse the same key only for exact retries of the same request body.
- min length: 1; max length: 200
Request body
customerIdstring | nullformat: uuid
namestringmin length: 1; max length: 200
companystring | nullmax length: 200
addressstring | nullmax length: 500
address2string | nullmax length: 500
citystring | nullmax length: 200
statestring | nullmax length: 20
zipstring | nullmax length: 30
phonestring | nullmax length: 50
emailstring | nullmax length: 500
notesstring | nullmax length: 5000
internalNotesstring | nullmax length: 5000
latitudenumber | nulllongitudenumber | nulltimezoneIdstring | nullmax length: 100
countrystringone of: USA, CAN, MEX; default: "USA"
Example request
Shell
curl -X PATCH 'https://arktms.com/api/v1/locations/<locationId>' \
-H "Authorization: Bearer $ARK_API_TOKEN" \
-H "Idempotency-Key: <unique-key>" \
-H "Content-Type: application/json" \
-d '{}'Success response
Updated location
objectstringrequiredone of: api_response
okbooleanrequiredone of: true
api_versionstringrequiredone of: 2026-05-31
request_idstringrequireddataobjectrequireddata.idstringrequiredformat: uuid
data.teamIdstring | nullrequiredformat: uuid
data.namestring | nullrequireddata.notesstring | nullrequireddata.internalNotesstring | nullrequireddata.addressobjectrequireddata.customerobject | nullrequireddata.createdAtstringrequiredformat: date-time
Errors
HTTP 400- Invalid request
HTTP 401- Authentication required
HTTP 403- Permission, scope, team, or entitlement denied
HTTP 404- Resource not found