Delete Thing Type Association
With this service, you can delete the association between the specified thing types.
The ETag value is mandatory to delete association of a thing type. You must retrieve the ETag value of the associated thing type using the GET (/ThingConfiguration/v1/ThingTypes('<thing type name>')/ObjectAssociations?$filter=AssociatedEntity eq '<thing type name>' and Relationship eq '<relationship>') service. The ETag value is assigned to the request header parameter If-Match in the PUT request. If you do not include the ETag value in the request header or if the ETag value is not correct, the server displays an error message.
You can delete the association between the thing types only if an association is not created between the thing instances belonging to the associated thing types.
Request
URI: /ThingConfiguration/v1/ObjectAssociations(PrimaryEntity='<thing type name>',AssociatedEntity='<thing type name>',Relationship='<relationship name>')
Operation Type: CRUD
HTTP Method: DELETE
Permissions: <thingconf>.d
Request Parameters
| Parameter | Required | Data Type | Description | Parameter Type |
|---|---|---|---|---|
| Name | Yes | String | Unique name of the primary thing type to which other thing types are associated | Path |
| Name | Yes | String | Unique name of the thing type which is associated with the primary thing type | Path |
| Relationship | Yes | String | Unique relationship between the associated thing types | Path |
Request Example
/ThingConfiguration/v1/ObjectAssociations(PrimaryEntity='core.automobiles:Truck',AssociatedEntity='core.automobiles:ABCXSeries',Relationship='IS A')The thing type core.automobiles:ABCXSeries is no more associated with the thing type core.automobiles:Truck
.
Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 204 | Associated thing type is no more associated with the primary thing type |