v1.0

post

/ec-site-svc/rest/v1.0/tenantsite/{entityType}/{entityId}/{associationType}/associations

Creates an association between a source entity (Lab, Depot, or Investigator) and an Institution.

Request

Path Parameters
  • Association type in the request. Allowed values: INVESTIGATOR_INSTITUTION (investigator linked to institution), DEPOT_INSTITUTION (depot linked to institution), LAB_INSTITUTION (lab linked to institution).
    Example:
    INVESTIGATOR_INSTITUTION
  • Institution, Investigator, Lab or Depot ID.
    Example:
    C36A3197FDEE433FB5547EE83DE99E4B
  • Entity type. Allowed values: INSTITUTION (organization entity), INVESTIGATOR (investigator entity), LAB (study lab entity), DEPOT (study depot entity).
    Example:
    INSTITUTION
Supported Media Types
Request Body - application/json ()
Root Schema : TENANT_SITES_REQUEST_TITLE
Type: object
Title: TENANT_SITES_REQUEST_TITLE
TENANT_SITES_REQUEST_DESC
Show Source
Nested Schema : TENANT_SITE_DTO_TITLE
Type: object
Title: TENANT_SITE_DTO_TITLE
TENANT_SITE_DTO_DESC
Show Source
Example:
[
    {
        "id":"C36A3197FDEE433FB5547EE83DE99E4B"
    }
]
Examples

Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : Contacts
Type: object
Show Source
Examples

400 Response

Returned when one or more path parameters, query parameters, or request-body values fail endpoint validation.
Body ()
Root Schema : SDFResponse
Type: object
Title: SDFResponse
Wrapper for service responses containing result or error data.
Show Source
Nested Schema : ErrorResponseData
Type: object
Show Source
Nested Schema : result
Type: object
The result object for successful requests. Type depends on the API operation.
Example:
{
    "hasMore":"true",
    "totalResults":5,
    "count":5,
    "data":[
    ]
}
Nested Schema : details
Type: object
Examples

Back to Top