Create contact

post

/ec-site-svc/rest/v1.0/contacts

Creates a contact.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : ContactDto
Type: object
Show Source
Nested Schema : contactAddressesDetails
Type: array
Unique Items Required: true
Show Source
Nested Schema : modes
Type: array
Unique Items Required: true
Show Source
Nested Schema : properties
Type: array
Unique Items Required: true
Show Source
Nested Schema : EntityAddressAssociationDto
Type: object
Show Source
Nested Schema : addressProperties
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
Nested Schema : ModeDto
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation.

400 Response

Bad request.
Body ()
Root Schema : SDFResponse
Type: object
Show Source
Nested Schema : ErrorResponseData
Type: object
Structure representing an error response from the reporting service. Contains an error code, human-readable message, and details.
Show Source
  • details
    Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
  • Application or business-specific error code representing the error type.
    Example: REPT_401
  • Human-readable error message describing the failure or issue.
    Example: Unauthorized: User does not have access to the requested resource
Nested Schema : result
Type: object
Nested Schema : details
Type: object
Detailed error context or debugging information such as validation error, stack trace, or field/parameter cause.
Example:
User role is missing required permission REPORTING_VIEW. Field: userId
Back to Top