Develop > Application Programming Interface > Legacy APIs > Artifact API > Unpublish service offerings from catalog

Unpublish service offerings from catalog

Details

URI /artifact/<catlog_id>/unpublish
Method POST
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/90e72e323b5330cc013b5358c0940021/unpublish?userIdentifier=90d96588360da0c701360da0f1d5f483

The following XML was sent in the request:


<CatalogItems>
  <catalogItem>
    <artifactContext>
      <name>OFFERING1_January 30, 2013 6:18:47 PM UTC</name>
    </artifactContext>
    <artifactContextType>
      <name>SERVICE_OFFERING</name>
      <categoryType><name>ARTIFACT_TYPE</name></categoryType>
    </artifactContextType>
    <category>
      <name>CRM</name>
      <categoryType>
        <name>CATALOG_CATEGORY</name>
      </categoryType>
    </category>               
  </catalogItem>
  <catalogItem>
    <artifactContext>
      <name>OFFERING2_January 28, 2013 11:32:17 PM UTC</name>
    </artifactContext>
    <artifactContextType>
      <name>SERVICE_OFFERING</name>
      <categoryType><name>ARTIFACT_TYPE</name></categoryType>
    </artifactContextType>
    <category>
      <name>AABBCCDD</name>
      <displayName>AABBCCDD</displayName>
      <categoryType><name>CATALOG_CATEGORY</name></categoryType>
    </category>               
  </catalogItem>
</CatalogItems>

The following XML was returned in the response:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<messageList>
  <messages> Unpublish Service Offering OFFERING1_January 30, 2013 6:18:47 PM UTC from category CRM succeeded.</messages>
  <messages> Unpublish Service Offering OFFERING2_January 28, 2013 11:32:17 PM UTC from category AABBCCDD failed. Category doesn't exist.</messages>
</messageList>