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
}
}'
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
Update a Location’s metadata
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
}
}'
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
POST https://api.velt.dev/v1/organizations/documents/locations/update
Show properties
{
"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
}
}
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
{
"error": {
"message": "ERROR_MESSAGE",
"status": "INVALID_ARGUMENT"
}
}
{
"result": {
"status": "success",
"message": "Location updated.",
"data": null
}
}
Was this page helpful?