Create facilities

post

/ec-site-svc/rest/v1.0/facilities/{InstitutionId}

Creates facilities or departments for an institution.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : facilityModels
Type: array
Show Source
Nested Schema : FacilityModelRequest
Type: object
Show Source
Nested Schema : FacilityDto
Type: object
Show Source
Nested Schema : properties
Type: array
Unique Items Required: true
Show Source
Nested Schema : PropertyDto
Type: object
CTMS Property DTO
Show Source
  • Minimum Length: 0
    Maximum Length: 2048
  • Unique identifier (UUID, 32-character uppercase hexadecimal string) of the entity for which the property applies.
    Example: 2A5E92F1C2D54DDA9F1C0A9E7B3C2D1A
  • Minimum Length: 0
    Maximum Length: 50
    Type of the entity for which the property applies. Type can have value Organization,Contact,Facility,Institution,Investigator,Lab or Depot
  • Minimum Length: 0
    Maximum Length: 100
    Unique key name of the property.
    Example: LabId
  • Minimum Length: 0
    Maximum Length: 500
    Value of the property.
    Example: 2A5E92F1C2D54DDA9F1C0A9E7B3C2D1A
  • Minimum Length: 0
    Maximum Length: 255
Back to Top

Response

Supported Media Types

200 Response

Successful operation.

400 Response

Bad request.
Body ()
Root Schema : FacilityModelResponseList
Type: object
Show Source
Nested Schema : facilityModels
Type: array
Show Source
Nested Schema : FacilityModelResponse
Type: object
Show Source
Nested Schema : FacilityDto
Type: object
Show Source
Nested Schema : properties
Type: array
Unique Items Required: true
Show Source
Nested Schema : PropertyDto
Type: object
CTMS Property DTO
Show Source
  • Minimum Length: 0
    Maximum Length: 2048
  • Unique identifier (UUID, 32-character uppercase hexadecimal string) of the entity for which the property applies.
    Example: 2A5E92F1C2D54DDA9F1C0A9E7B3C2D1A
  • Minimum Length: 0
    Maximum Length: 50
    Type of the entity for which the property applies. Type can have value Organization,Contact,Facility,Institution,Investigator,Lab or Depot
  • Minimum Length: 0
    Maximum Length: 100
    Unique key name of the property.
    Example: LabId
  • Minimum Length: 0
    Maximum Length: 500
    Value of the property.
    Example: 2A5E92F1C2D54DDA9F1C0A9E7B3C2D1A
  • Minimum Length: 0
    Maximum Length: 255
Back to Top