Skip to content

Add a new relationship (addRelationshipService)

Request

Creates a relationship between two Verato entities — for example, linking a practitioner to a facility, or a facility to an organization — using a configured relationship verb (e.g., is employed by, is affiliated with) and the Link IDs of the entities being connected.

Security
basicAuth
Bodyapplication/jsonrequired
trackingIdstring

Optional client-defined correlation ID.

contentobject(AddRelationshipWsRequest)
curl -i -X POST \
  -u '<username>:<password>' \
  https://yourveratodomain.com/provider-link-ws/svc/addRelationshipService \
  -H 'Content-Type: application/json' \
  -d '{
    "trackingId": "string",
    "content": {
      "relationship": {
        "id": "string",
        "relationshipVerb": "string",
        "subjectVeratoId": "string",
        "objectVeratoId": "string",
        "domain": "string",
        "status": "string",
        "startDate": "2019-08-24T14:15:22Z",
        "endDate": "2019-08-24T14:15:22Z"
      }
    }
  }'

Responses

Add relationship response

Bodyapplication/json
auditIdstring

Unique audit identifier for correlating requests and responses.

successboolean

Indicates whether the business operation succeeded.

warningsArray of strings

Non-fatal warnings generated by the operation.

retryableErrorboolean

Indicates whether an error is transient and the request may be retried.

messagestring

Human-readable status message.

errorsArray of strings

Error messages if success is false.

trackingIdstring

Echo of the request trackingId, if provided.

contentobject(AddRelationshipWsResponse)
Response
{ "auditId": "string", "success": true, "warnings": [ "string" ], "retryableError": true, "message": "string", "errors": [ "string" ], "trackingId": "string", "content": { "relationship": { … } } }