Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Assign value to attribute using API

  • Updated: 2/03/2021
    • Automation 360 v.x
    • Explore
    • RPA Workspace

Assign value to attribute using API

Assign either a standard or user-input value to an attribute, based on your access permissions to the credential. A standard value is accessible by all users of the credential; an attribute with a user-input value enables each user to provide their own value which the other users cannot access.

Prerequisites

Note: You can view the Control Room APIs in the Community Edition, but API functionality is limited. You need a licensed Automation 360 Edition to access the full functionality of the APIs.
  • Use the Authentication API to generate a JSON Web Token. See Authentication API.
  • To set the standard value, you must have access to the credential, either as the credential owner or as a locker Admin or Manager.
  • To set the user-input value, you must have access to the credential, either as the credential owner or as a locker consumer.
  • Verify whether the attribute accepts a standard or user-input value. This is indicated in the userProvided output parameter. List credentials using API.

Procedure

  1. Add the authentication token to the request header.
  2. Use the POST method and endpoint URL: <your_control_room_url>/credentialvault/credentials/{credentialId}/attributevalues.
    Request body:
    {
      "list": [
        {
          "credentialAttributeId": "3337",
          "value": "aVerySecurePassword"
        }
      ]
    }
  3. Send the request.
    Response body: The response confirms that a value was stored to the attribute, but for security reasons, the response does not contain the stored value.
    [
       {
          "id":1630,
          "credentialAttributeId":3337,
          "value":"Szyx93Saw9xnnqF024XHSw==",
          "userId":2273,
          "createdBy":1508,
          "createdOn":"2021-02-03T18:42:33.383970Z",
          "updatedBy":1508,
          "updatedOn":"2021-02-03T18:42:33.383975Z",
          "version":0
       }
    ]
    
    The REST API responds to each request with an HTTP response code. For response codes, see API response codes.
Send Feedback