Create Association Type

Create Association Type

The API creates a new association type. The API performs the following validation before creating the association type:
1. There is an no existing association type with the specified id.

2. The From Endpoint Type and To Endpoint Type values are checked to make sure they exist.

3. Make sure the cardinality value is valid (0-3).

Request
URI
POST
https://{api_host}/endpoint-configuration-service/api/associationtypes
COPY
Request Body

Association type to be created.

AssociationType of type(s) application/json
Required
{
    "lastUpdated": "string",
    "createdDate": "string",
    "toType": "string",
    "fromType": "string",
    "name": "string",
    "description": "string",
    "id": "string",
    "version": 0,
    "cardinality": 0
}
string As date-time As date-time
lastUpdated
Optional

lastUpdated

string As date-time As date-time
createdDate
Optional

createdDate

string
toType
Optional

toType

string
fromType
Optional

fromType

string
name
Optional

name

string
description
Optional

description

string As uuid As uuid
id
Optional

id

integer As int64 As int64
version
Optional

version

integer As int32 As int32
cardinality
Required

cardinality

Responses
200

successful operation

Returns AssociationType of type(s) */*
{
    "lastUpdated": "string",
    "createdDate": "string",
    "toType": "string",
    "fromType": "string",
    "name": "string",
    "description": "string",
    "id": "string",
    "version": 0,
    "cardinality": 0
}
string As date-time As date-time
lastUpdated
Optional

lastUpdated

string As date-time As date-time
createdDate
Optional

createdDate

string
toType
Optional

toType

string
fromType
Optional

fromType

string
name
Optional

name

string
description
Optional

description

string As uuid As uuid
id
Optional

id

integer As int64 As int64
version
Optional

version

integer As int32 As int32
cardinality
Required

cardinality


201
Operation doesn't return any data structure

403

Unauthorized.

Operation doesn't return any data structure

405

Request failed validation.

Operation doesn't return any data structure

501

Tenantable association types cannot be created.

Operation doesn't return any data structure