Associate two entities
post
/ec-site-svc/rest/v1.0/tenantsite/{entityType}/{entityId}/{associationType}/associations
Creates an association between two entities - Lab/Depot/Investigator with Institution.
Request
Path Parameters
-
associationType(required): string
Association type of entities in request. Allowed values are INVESTIGATOR_INSTITUTION, DEPOT_INSTITUTION, LAB_INSTITUTION
-
entityId(required): string
Institution, Investigator, Lab or Depot ID.
-
entityType(required): string
Institution, Investigator, Lab or Depot.
Supported Media Types
- */*
Root Schema : schema
Type:
Show Source
object-
tenantSites: array
tenantSites
Unique Items Required:
true
Nested Schema : TenantSiteDto
Type:
Show Source
object-
comment: string
Minimum Length:
0Maximum Length:2048 -
id: string
(uuid)
-
objectVersionNumber: number
-
reason: string
Minimum Length:
0Maximum Length:255 -
tenantFirstEntityId(required): string
(uuid)
-
tenantSecondEntityId(required): string
(uuid)
-
versionStart: string
(date-time)
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : Contacts
Type:
Show Source
object-
comment: string
Minimum Length:
0Maximum Length:2048 -
contactId: string
Minimum Length:
0Maximum Length:50 -
contactType(required): string
(uuid)
-
degree: string
Minimum Length:
0Maximum Length:200 -
disbarmentEnd: string
(date-time)
-
disbarmentStart: string
(date-time)
-
firstName(required): string
Minimum Length:
0Maximum Length:100 -
id: string
(uuid)
-
lastName(required): string
Minimum Length:
0Maximum Length:100 -
middleName: string
Minimum Length:
0Maximum Length:100 -
prefix: string
(uuid)
-
prefixCodeValue: string
-
primarySpecialityId: string
(uuid)
-
reason: string
Minimum Length:
0Maximum Length:255 -
status(required): string
(uuid)
-
statusCodeValue: string
-
studyAgnostic(required): string
-
studyId(required): string
-
suffix: string
(uuid)
-
suffixCodeValue: string
-
taxId: string
Minimum Length:
0Maximum Length:50 -
timezone: string
-
versionStart: string
(date-time)
400 Response
Bad request.
Nested Schema : result
Type:
objectNested Schema : details
Type:
object