Relate two subjects.

PUT /v1/subjects/{type}/{subjectId}/is/{role}/of/{targetType}/{targetSubject}

This API assigns a relationship such that subjectId is a role of targetSubject. For instance to record child-parent relationship, use subjectId=parentId, role=parent, and targetSubject=childId. ConsentGrid™ recognizes parent or guardian roles, use one of the two to implement child/parent relationship.


200 Ok

Relationship successfully added.

404 Not Found

Subject not found.