The Linked Location object
Attributes
Unique identifier for the object.
{
"id": "linked-location_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"location": "location_example"
} /api/assets/linked-location?parent_id={id} List linked locations by parent
Returns all linked locations belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of linked location objects belonging to the parent.
curl https://api.overplane.dev/api/assets/linked-location?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "linked-location_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"location": "location_example"
}
],
"has_more": false,
"total": 1
} /api/assets/linked-location Create a linked location
Creates a new linked location object.
Body parameters
Returns
Returns the newly created linked location object if the call succeeded.
curl https://api.overplane.dev/api/assets/linked-location \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"location":"location_example"}' {
"id": "linked-location_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"location": "location_example"
} /api/assets/linked-location/{id} Update a linked location
Updates the specified linked location by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the linked location to update.
Body parameters
Returns
Returns the updated linked location object.
curl https://api.overplane.dev/api/assets/linked-location/linked-location_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "linked-location_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"location": "location_example"
} /api/assets/linked-location/{id} Delete a linked location
Permanently deletes a linked location. This cannot be undone.
Path parameters
The identifier of the linked location to delete.
Returns
Returns a confirmation that the linked location has been deleted.
curl https://api.overplane.dev/api/assets/linked-location/linked-location_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "linked-location_abc123",
"deleted": true
} /api/assets/linked-location/reorder Reorder linked locations
Updates the sort order of linked locations within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/assets/linked-location/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "linked-location_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"location": "location_example"
}