BadRequestDTO
{
"statusCode": 400,
"message": "Bad Request"
}
UnauthorizedDTO
{
"statusCode": 401,
"message": "Invalid token: access token is invalid",
"error": "Unauthorized"
}
UnprocessableDTO
{
"statusCode": 422,
"message": [
"Unprocessable Entity"
],
"error": "Unprocessable Entity"
}
createRelationReqDto
Your Sub Account's ID
Association's Id
First Record's Id. For instance, if you have an association between a contact and a custom object, and you specify the contact as the first object while creating the association, then your firstRecordId would be the contactId
Second Record's Id.For instance, if you have an association between a contact and a custom object, and you specify the custom object as the second entity while creating the association, then your secondRecordId would be the customObject record Id
{
"locationId": "clF1LD04GTUKN3b3XuOj",
"associationId": "ve9EPM428h8vShlRW1KT",
"firstRecordId": "ve9EPM428h8vShlRW1KT",
"secondRecordId": "ve9EPM428h8vShlRW1KT"
}
GetPostSuccessfulResponseDto
First Objects Association Label (custom_objects.children)
First Objects Association Label (custom_objects.children)
First Objects Key
Second Object Association Label (contact)
Second Objects Key
Association Type can be USER_DEFINED or SYSTEM_DEFINED
{
"locationId": "string",
"id": "ve9EPM428h8vShlRW1KT",
"key": "student",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact",
"associationType": "USER_DEFINED"
}
createAssociationReqDto
Association's Unique key
First Objects Association Label (custom_objects.children)
First Objects Key
Second Object Association Label (contact)
Second Objects Key
{
"locationId": "string",
"key": "student_teacher",
"firstObjectLabel": "student",
"firstObjectKey": "custom_objects.children",
"secondObjectLabel": "Teacher",
"secondObjectKey": "contact"
}
UpdateAssociationReqDto
{
"firstObjectLabel": "student",
"secondObjectLabel": "tutor"
}
DeleteAssociationsResponseDTO
Deletion status
Association Id
{
"deleted": true,
"id": "6d6f6e676f5f6576656e7473",
"message": "Association deleted successfully"
}