- 1 Minute to read
- Print
- DarkLight
- PDF
Clear Dimension Members (Metadata) (External Source Models)
- 1 Minute to read
- Print
- DarkLight
- PDF
Clear Dimension Members (Metadata) (External Source Models)
Use this API to clear metadata from an external Data Source model. This API can be invoked to clear specific dimensions or all dimensions of an external Data Source model. The ClearMetadata API results in a success even if all data has been cleared in earlier call.
POST /modeling/sourcemodel/metadata/clear HTTP/1.1
Content-Type: application/xml
Accept: application/xml
X-ACCESS-TOKEN:
<?xml version="1.0" encoding="UTF-8"?>
<clear-metadata-payload>
<model-name>$ModelName</model-name>
<dimension-name>$DimensionName</dimension-name>
</clear-metadata-payload>
Parameters
$ModelName: (type: string) Name of the model
$DimensionName: (type: string) Name of the dimension
Sample Payload
<?xml version="1.0" encoding="UTF-8"?>
<clear-metadata-payload>
<model-name>My Model</model-name>
<dimension-name>Time</dimension-name>
</clear-metadata-payload>
Response
Success Response
HTTP/1.1 200/204 OK
Error Responses
Service Not Available (possibly due to maintenance)
HTTP/1.1 503 Service Unavailable
One or more HTTP headers were missing
HTTP/1.1 412 Precondition Failed
Unauthorized Access (access key lookup failed)
HTTP/1.1 401 Unauthorized
Invalid XML (bad request)
HTTP/1.1 400 Bad Request
Not Found (source model not found)
HTTP/1.1 404 Not Found