:doc:`PersonalizeEvents <../../personalize-events>` / Client / put_actions

***********
put_actions
***********



.. py:method:: PersonalizeEvents.Client.put_actions(**kwargs)

  

  Adds one or more actions to an Actions dataset. For more information see `Importing actions individually <https://docs.aws.amazon.com/personalize/latest/dg/importing-actions.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/PutActions>`_  


  **Request Syntax**
  ::

    response = client.put_actions(
        datasetArn='string',
        actions=[
            {
                'actionId': 'string',
                'properties': 'string'
            },
        ]
    )
    
  :type datasetArn: string
  :param datasetArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Actions dataset you are adding the action or actions to.

    

  
  :type actions: list
  :param actions: **[REQUIRED]** 

    A list of action data.

    

  
    - *(dict) --* 

      Represents action metadata added to an Action dataset using the ``PutActions`` API. For more information see `Importing actions individually <https://docs.aws.amazon.com/personalize/latest/dg/importing-actions.html>`__.

      

    
      - **actionId** *(string) --* **[REQUIRED]** 

        The ID associated with the action.

        

      
      - **properties** *(string) --* 

        A string map of action-specific metadata. Each element in the map consists of a key-value pair. For example, ``{"value": "100"}``.

         

        The keys use camel case names that match the fields in the schema for the Actions dataset. In the previous example, the ``value`` matches the 'VALUE' field defined in the Actions schema. For categorical string data, to include multiple categories for a single action, separate each category with a pipe separator ( ``|``). For example, ``\"Deluxe|Premium\"``.

        

      
    

  
  :returns: None
  **Exceptions**
  
  *   :py:class:`PersonalizeEvents.Client.exceptions.InvalidInputException`

  
  *   :py:class:`PersonalizeEvents.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`PersonalizeEvents.Client.exceptions.ResourceInUseException`

  