v7
latestSwagger 2.02026-07-13322074.5 KBTwins
Adds a relationship between two digital twins. Status codes:
- 200 OK
- 400 Bad Request
- InvalidArgument - The digital twin id, relationship id, or payload is invalid.
- InvalidRelationship - The relationship is invalid.
- OperationNotAllowed - The relationship cannot connect to the same digital twin.
- ValidationFailed - The relationship content is invalid.
- 404 Not Found
- DigitalTwinNotFound - The digital twin was not found.
- TargetTwinNotFound - The digital twin target of the relationship was not found.
- 412 Precondition Failed
- PreconditionFailed - The precondition check (If-Match or If-None-Match) failed.
put/digitaltwins/{id}/relationships/{relationshipId}
Path parameters
idstring required
The id of the digital twin. The id is unique within the service and case sensitive.
relationshipIdstring required
The id of the relationship. The id is unique within the digital twin and case sensitive.
Query parameters
api-versionstring required
The requested API version.
Headers
If-None-Match'*'
Only perform the operation if the entity does not already exist.
Request body
object required
Response
Success
Relationship required
Digital twin relationship