Levels
Version: v1
Supported HTTP VERB(s)
HTTP Verb | Status | Description |
|---|---|---|
POST
| Supported | Delete the levels mentioned in the request. |
POST
- Request:
- /removeLevelsDeletes the levels for the given level codes.Sample Request URI:
orhttps://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/removeLevelshttps://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/removeLevels?forceRemove=false&&doValidateOnly=true&&showWarnings=trueSample Request Header:Authorization: BasicContent-Type: application/json - Sample Request Body
- Sample POST Request{ "levelCodesToDelete": ["testLevel", "HQ"] }Payload ParametersNameDescriptionRequiredlevelCodesToDeleteLevel Codes to be deleted name.YPath ParameterNameDescriptionRequiredtenantTenant to operate on. e.g. globosalesYQuery ParametersNameDescriptionRequiredDefaultforceRemoveDeletes in-use accounts when forceRemove=true and ignores in-use accounts when forceRemove=falseDefault is always forceRemove=falseNinstanceCodeThe instanceCode to retrieve values from. For example, GLOBO. If no instanceCode is specified, the default insantce of the user is used.NdoValidateOnlyProcess 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
Successful response with warnings{ "total": 1 }{ "total": 0, "warning": { "info": "Some levels were not deleted.", "warnings": [ { "field": "HQ", "warning": "Default Root Plans cannot be deleted." } ] } }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.