PUT
/
v1
/
accounts
/
relationships
/
types
/
{id}
curl --request PUT \
  --url https://platform.thena.ai/v1/accounts/relationships/types/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-org-id: <api-key>' \
  --data '{
  "name": "Parent",
  "inverseRelationshipId": "A123"
}'
{
  "id": "ART123",
  "name": "Parent",
  "inverseRelationshipId": "ART124",
  "inverseRelationship": "Subsidiary",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Enter JWT bearer token

x-org-id
string
header
required

Enter organization ID

Path Parameters

id
string
required

Body

application/json
name
string

The name of the relationship type

Example:

"Parent"

inverseRelationshipId
string

The inverse relationship type ID

Example:

"A123"

Response

200
application/json
Operation successful
id
string
required

The identifier of the relationship type

Example:

"ART123"

name
string
required

The name of the relationship type

Example:

"Parent"

inverseRelationshipId
string
required

The identifier of the inverse relationship type

Example:

"ART124"

inverseRelationship
string
required

The name of the inverse relationship type

Example:

"Subsidiary"

createdAt
string
required

The creation date of the relationship type

updatedAt
string
required

Last update date of the relationship type