CLI Reference Guide

<displayName>Artifact Type</displayName>
<extensible>false</extensible>
</categoryType>
</artifactType>
<disabled>false</disabled>
<numberOfProvider>0</numberOfProvider>
<numberOfServiceDesign>0</numberOfServiceDesign>
<numberOfCatalog>0</numberOfCatalog>
</ResourceEnvironment>
Update an artifact
Details
URI
/artifact/<artifact_id>
Method
PUT
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.
view=<view_type>&scope=view
Optional; Used to update artifacts based on pre-defined views. See Artifact
views (description column) for a list of view types that support update operation.
<_artifact_property>_action_=merge
Optional; use themerge option with the action meta tag query parameter to
update only a portion of the artifact. The action meta tag can either be specified
globally for the artifact by including parameter _action_=merge, or fora
specificpropertye.g., _property_values_action_=merge.
Returns
200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception
Note: To completely update the artifact, i.e., replace the persistent artifact, do notuse the view
or merge parameters andinclude all artifact content in the request body. Note that if only a
portion of the artifiact contentis sent in the request body, any unspecified content will be
removed from the artifact.
To update a portion of the artifact:
l Use a pre-defined view that contains a subset of the artifact properties; only that subset of
properties will be updated per the values specified in the request body.See Artifact
viewsfor a list of view types.
HP Cloud Service Automation (4.00)Page 15 of 141
APIReference
Contents