Skip to main content
POST
/
v1
/
projects
/
{project_id}
/
elements
/
{element_id}
/
parents
Add parent relationship
curl --request POST \
  --url https://{tenant}.torchapp.com.au/api/v1/projects/{project_id}/elements/{element_id}/parents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "parent_id": "architecto",
  "attribution_value": 4326.41688,
  "attribution_colour": "architecto"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
integer
required

The ID of the project.

element_id
integer
required

The ID of the element.

Body

application/json
parent_id
string
required
Example:

"architecto"

attribution_value
number
Example:

4326.41688

attribution_colour
string
Example:

"architecto"

Response

Parent relationship created

The response is of type object.