DeleteRelationships atomically bulk deletes all relationships matching the
provided filter. If no relationships match, none will be deleted and the operation will succeed. An optional set of preconditions can be provided that must be satisfied for the ope
POST {{baseUrl}}/v1/relationships/delete
Request Body
{"relationshipFilter"=>{"resourceType"=>"<string>", "optionalResourceId"=>"<string>", "optionalRelation"=>"<string>", "optionalSubjectFilter"=>{"subjectType"=>"<string>", "optionalSubjectId"=>"<string>", "optionalRelation"=>{"relation"=>"<string>"}}}, "optionalPreconditions"=>[{"operation"=>"OPERATION_UNSPECIFIED", "filter"=>{"resourceType"=>"<string>", "optionalResourceId"=>"<string>", "optionalRelation"=>"<string>", "optionalSubjectFilter"=>{"subjectType"=>"<string>", "optionalSubjectId"=>"<string>", "optionalRelation"=>{"relation"=>"<string>"}}}}, {"operation"=>"OPERATION_UNSPECIFIED", "filter"=>{"resourceType"=>"<string>", "optionalResourceId"=>"<string>", "optionalRelation"=>"<string>", "optionalSubjectFilter"=>{"subjectType"=>"<string>", "optionalSubjectId"=>"<string>", "optionalRelation"=>{"relation"=>"<string>"}}}}], "optionalLimit"=>"<long>", "optionalAllowPartialDeletions"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"deletedAt":{"token":"\u003cstring\u003e"},"deletionProgress":"DELETION_PROGRESS_UNSPECIFIED"}