Skip to main content
POST
/
v1
/
accounts
/
relationships
/
types
Create an account relationship type
curl --request POST \
  --url https://platform.thena.ai/v1/accounts/relationships/types \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Parent",
  "inverseRelationshipId": "A123"
}
'
{
  "id": "ART123",
  "name": "Parent",
  "inverseRelationshipId": "ART124",
  "inverseRelationship": "Subsidiary",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Enter the bearer token

Body

application/json
name
string
required

The name of the relationship type

Example:

"Parent"

inverseRelationshipId
string

The inverse relationship type ID

Example:

"A123"

Response

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<date-time>
required

The creation date of the relationship type

updatedAt
string<date-time>
required

Last update date of the relationship type