Update relationship(s) of an attribute

PUT {{baseUrl}}/api/model/systemHierarchy/attributes/:attributeId/relationships

Update a specific attribute's relationship(s) in the changeset, based on the definition provided in the request body. It returns the attribute's updated relationship(s) in the changeset.

The changeset ID can be obtained using the changeset creation API. An authorization token is required to execute the request and can be obtained using Authentication endpoints.

To save the change in metadata, commit using the changeset commit API.

Request Body

{"relationships"=>[{"parent"=>{"objectId"=>"{{rd_attributeId}}", "subType"=>"attribute", "name"=>"Subcategory_Test"}, "child"=>{"objectId"=>"8D679D4211D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Item"}, "relationshipTable"=>{"objectId"=>"8D67937411D3E4981000E787EC6DE8A4", "subType"=>"logical_table", "name"=>"LU_ITEM"}, "relationshipType"=>"one_to_many"}, {"parent"=>{"objectId"=>"8D679D3711D3E4981000E787EC6DE8A4", "subType"=>"attribute", "name"=>"Category"}, "child"=>{"objectId"=>"{{rd_attributeId}}", "subType"=>"attribute", "name"=>"Subcategory_Test"}, "relationshipTable"=>{"objectId"=>"8D6793B611D3E4981000E787EC6DE8A4", "subType"=>"logical_table", "name"=>"LU_SUBCATEG"}, "relationshipType"=>"one_to_many"}]}

HEADERS

KeyDatatypeRequiredDescription
X-MSTR-AuthTokenstring(Required) Authorization Token
X-MSTR-MS-Changesetstring(Required) Changeset ID
Content-Typestring