Attribute Values
Version: v1
Supported HTTP VERB(s)
HTTP Verb | Description |
|---|---|
POST
| Delete all existing attribute values. |
POST:
- Request:
- /removeAttributeValuesGiven attribute name and list of attribute value codes deletes its attribute values.Sample Request URI:
orhttps://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/accounts/removeAttributeValueshttps://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/accounts/removeAttributeValues?doValidateOnly=true&&showWarnings=trueSample Request Header:Authorization: BasicContent-Type: application/json
- Sample Request Body
- Sample POST Request[ { "attributeName":"tax code", "attributeValueCodes":[ "TT-TRE", "test-67" ] }, { "attributeName":"AP Eligible", "attributeValueCodes":[ "Yes", "No" ] }, { "attributeName":"test-2", "attributeValueCodes":[ "test-22", "test-21", "test-5" ] }, { "attributeName":"test-3", "attributeValueCodes":[ "test-22", "test-21", "test-5" ] } ]Payload ParametersNameDescriptionRequiredattributeNameAttribute name.YattributeValueCodesList of all attribute value codes to delete.YPath ParameterNameDescriptionRequiredtenantTenant to operate on. e.g. globosalesYQuery ParametersNameDescriptionRequiredDefaultdoValidateOnlyProcess the request in the validate mode which means no db persistence of the changes.NfalseshowWarningsList of Warnings behind any dimension value ignored /skipped from deletion.Nfalse
- Sample Response:
- 200 OKSuccessful response.{ "total": 5 }Successful response with warnings.{ "total":5, "warning":{ "info":"Some attribute values were not deleted.", "warnings":[ { "field":"TEST-67", "warning":"Attribute value isn't available for deletion." }, { "field":"TEST-21", "warning":"Attribute value isn't available for deletion." }, { "field":"TEST-22", "warning":"Attribute value isn't available for deletion." }, { "field":"TEST-5", "warning":"Attribute value isn't available for deletion." } ] } }400 Bad RequestThe request could not be understood by the server.401 UnauthorizedUser is not authorized.403 ForbiddenUser has insufficient permissions.500 Internal Server ErrorInternal Server Error.