Use the Delete method to delete a trusted issuer document.
The following table summarizes the DELETE request parameters.
Name | Description | Type |
---|---|---|
"displayName" |
Display name for the document. | Query |
"documentName" |
Name of trusted issuer document. | Query |
Media Types: | application/json |
The response body returns the status of the import operation, including:
Attribute | Description |
---|---|
"ERROR_CODE" |
If "STATUS" is set to "Failed" , provides the error code. |
"ERROR_MSG" |
If "STATUS" is set to "Failed" , provides the contents of the error message. |
"Result" |
Details of the operation results. |
"STATUS" |
Status of operation. For example, "Succeeded" or "Failed" . |
The following example shows how to delete a SAML issuer trust document by submitting a DELETE request on the REST resource using cURL.
curl -i -X DELETE -u username:password http://myhost:7001/idaas/webservice/admin/v1/trustdocument?"documentName=myTrustDocument&displayName=myTrustDocument"
The following shows an example of the response header. For more about the HTTP status codes, see "HTTP Status Codes for HTTP Methods."
HTTP/1.1 200 OK
The following shows an example of the response body in JSON format.
{ "STATUS": "Succeeded", "Result": "Token Issuer Trust document named "myTrustDocument" deleted from the repository." }