REST APIs
- Organizations
- Folders
- Documents
- Users
- User Groups
- Comments Feature
- Notifications
- Live State
- Workspace
SDK
- APIs
- Models
Update Location
Update a Location’s metadata
POST
/
v1
/
organizations
/
documents
/
locations
/
update
Copy
Ask AI
curl --request POST \
--url https://api.velt.dev/v1/organizations/documents/locations/update \
--header 'Content-Type: application/json' \
--header 'x-velt-api-key: <x-velt-api-key>' \
--header 'x-velt-auth-token: <x-velt-auth-token>' \
--data '{
"data": {
"apiKey": "<string>",
"authToken": "<string>",
"organizationId": "<string>",
"documentId": "<string>",
"migrate": {
"oldLocation": {},
"newLocation": {}
},
"merge": true
}
}'
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
Use this API to update a Location’s metadata.
Endpoint
POST https://api.velt.dev/v1/organizations/documents/locations/update
Headers
Your API key.
Your Auth Token.
Body
Params
Your API key
Your Auth Token
Organization ID. Provide the organizationId if you are using Organizations feature.
Document ID
When true, merges new location fields with existing ones. When false, completely replaces the old location object. Default: false
Example Request
Copy
Ask AI
{
"data": {
"apiKey": "YOUR_API_KEY",
"authToken": "YOUR_AUTH_TOKEN",
"documentId": "YOUR_DOCUMENT_ID",
"migrate": {
"oldLocation": {
"id": "scene_1",
"locationName": "Untitled scene"
},
"newLocation": {
"id": "scene_1",
"locationName": "White scene"
}
},
"merge": true
}
}
Response
Success Response
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
Failure Response
Copy
Ask AI
{
"error": {
"message": "ERROR_MESSAGE",
"status": "INVALID_ARGUMENT"
}
}
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
Was this page helpful?
Copy
Ask AI
curl --request POST \
--url https://api.velt.dev/v1/organizations/documents/locations/update \
--header 'Content-Type: application/json' \
--header 'x-velt-api-key: <x-velt-api-key>' \
--header 'x-velt-auth-token: <x-velt-auth-token>' \
--data '{
"data": {
"apiKey": "<string>",
"authToken": "<string>",
"organizationId": "<string>",
"documentId": "<string>",
"migrate": {
"oldLocation": {},
"newLocation": {}
},
"merge": true
}
}'
Copy
Ask AI
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
Assistant
Responses are generated using AI and may contain mistakes.