Develop > Application Programming Interface > Legacy APIs > Artifact API > Delete document from service offering

Delete Document from Service Offering

Details

URI /artifact/<service_offering_id>/document/<document_id>
Method DELETE
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. See Get userIdentifier for the steps required to get the userIdentifier value.

Returns 200 - Ok
401 - Not authorized
404 - Object not found
500 - Server exception

Example

The following URL was sent:

https://<host>:<port>/csa/rest/artifact/90cef5de3c63429f013c68b8cdda0bad/document/90cef5de3c63429f013c68b8cdda0bad?userIdentifier=90cef5de3c63429f013c642c7fc708ab

The following XML was returned:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Document>
    <id>90cef5de3c63429f013c68d4146a0bce</id>
    <isCriticalSystemObject> false </isCriticalSystemObject>
    <name>Example Offering Doc.txt</name>
    <state>
        ...
    </state>
    <artifactType>
        ...
    </artifactType>
    <disabled>false</disabled>
    <url>/csa//document/download?id=90cef5de3c63429f013c68d4146a0bce</url>
    <content>Sample Doc Content</content>
    <mimeType>application/octet-stream</mimeType>
    <documentType>
       ...
    </documentType>
</Document>