Leggi e rivedi la documentazione di Automation Anywhere

Automation 360

Chiudi contenuti

Contenuti

Apri contenuti

Create Trigger Mapping

  • Aggiornato: 2022/04/05

    Create Trigger Mapping

    Use the Create trigger mapping API to associate an attended bot with a trigger to users or roles. In order for this API to execute, make sure that the associated users and roles have Bot Runner license.

    Request

    POST http://{{ControlRoolURL}}/v1/triggers/triggermapping
    Header: X-Authorization <<authentication token>>
    Tutte le chiamate API devono contenere un token di autenticazione nell'intestazione della richiesta. Usare la funzione Autenticazione per generare un token web JSON. Vedi API di autenticazione.
    Request body for users:
    {
       "botFileId":106587,
       "botFileLabel":"string",
       "users":{
          "userIds":[
             "985"
          ]
       }
    }
    Request body for roles:
    {
       "botFileId":106587,
       "botFileLabel":"string",
       "roles":{
          "roleIds":[
             721, 645
          ]
       }
    }

    Request Parameters

    Parameter Type Description
    botFileId Integer Unique Identifier of the bot file.
    botFileLabel String Bot file label.
    userIds Array Enter the Ids of the user. Only the users listed here will be associated to the trigger.
    Nota: The user associated to this userIds must have Bot Runner license in order to execute the API.
    roleIds Array Enter the Ids of the role. Only the roles listed here will be associated to the trigger.
    Nota: The users associated to this roleIds must have Bot Runner license in order to execute the API.

    Response

    {
      "triggerMappings": [
        {
          "id": "399",
          "userId": "985",
          "botPath": "Automation Anywhere\\Bots\\botA",
          "modifiedBy": "289",
          "lastModified": "2022-04-06T09:09:43.893256Z",
          "botName": "botA",
          "botId": "106587",
          "botLabel": "string"
        }
      ]
    }

    Response Parameters

    Parameter Type Description
    triggerMappings Array The triggerMappings array returned with all the details of the triggerMapping created. Each array element contains the following values:
    • id - Id of the trigger mapping.
    • userId - Id of the user.
    • roleId - Id of the role.
    • botPath - The path of the bot.
    • modifiedBy - The Id of the user that did the triggerMapping.
    • lastModified - The timestamp of the triggerMapping.
    • botName - The name of the bot that got the triggerMapping.
    • botId - The Id of the bot that got the triggerMapping.
    • botLabel - The label of the bot that got the triggerMapping.
    • licenseFeatures - License assigned to the user.
    Invia feedback