Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.86 KB

orgArtifactCredAccount_update.rst

File metadata and controls

71 lines (49 loc) · 1.86 KB

orgArtifactCredAccount_update

PUT /orgs/{oid}/artifactaccounts/{caid}

Summary

  • Method: PUT
  • Response Code: 200
  • Response Formats: application/xml application/json
  • Since: UForge 3.6

Update the meta-data of an artifact account.

Please refer to artifactcredaccount-object for a complete list of all the artifact account attributes.

Security Summary

  • Requires Authentication: true
  • Entitlements Required: cloud_account_edit

URI Parameters

  • caid (required): the id of the artifactcredaccount-object
  • oid (required): the id of the org-object

HTTP Request Body Parameters

A artifactCredAccount-object object

Example Request

curl "https://uforge.example.com/api/orgs/{oid}/artifactaccounts/{caid}" -X PUT \
-u USER_LOGIN:PASSWORD -H "Accept: application/xml" --data-binary "@representation.xml"

Example of representation.xml content (the request body):

<ns0:artifactCredAccount xmlns:ns0="http://www.usharesoft.com/uforge">
    <name>my-artifact-account-update</name>
    <host>myremoterepo-update.com</host>
    <type>ftp</type>
    <port>21</port>
    <login>admin-update</login>
    <password>adminpwd-update</password>
</ns0:artifactCredAccount>
  • artifactcredaccount-object
  • orgArtifactCredAccount-create
  • orgArtifactCredAccount-delete
  • orgArtifactCredAccount-get
  • orgArtifactCredAccount-getAll
  • userArtifactCredAccount-create
  • userArtifactCredAccount-delete
  • userArtifactCredAccount-get
  • userArtifactCredAccount-getAll
  • userArtifactCredAccount-update