:doc:`PinpointSMSVoiceV2 <../../pinpoint-sms-voice-v2>` / Client / put_registration_field_value

****************************
put_registration_field_value
****************************



.. py:method:: PinpointSMSVoiceV2.Client.put_registration_field_value(**kwargs)

  

  Creates or updates a field value for a registration.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/PutRegistrationFieldValue>`_  


  **Request Syntax**
  ::

    response = client.put_registration_field_value(
        RegistrationId='string',
        FieldPath='string',
        SelectChoices=[
            'string',
        ],
        TextValue='string',
        RegistrationAttachmentId='string'
    )
    
  :type RegistrationId: string
  :param RegistrationId: **[REQUIRED]** 

    The unique identifier for the registration.

    

  
  :type FieldPath: string
  :param FieldPath: **[REQUIRED]** 

    The path to the registration form field. You can use  DescribeRegistrationFieldDefinitions for a list of **FieldPaths**.

    

  
  :type SelectChoices: list
  :param SelectChoices: 

    An array of values for the form field.

    

  
    - *(string) --* 

    

  :type TextValue: string
  :param TextValue: 

    The text data for a free form field.

    

  
  :type RegistrationAttachmentId: string
  :param RegistrationAttachmentId: 

    The unique identifier for the registration attachment.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'RegistrationArn': 'string',
          'RegistrationId': 'string',
          'VersionNumber': 123,
          'FieldPath': 'string',
          'SelectChoices': [
              'string',
          ],
          'TextValue': 'string',
          'RegistrationAttachmentId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RegistrationArn** *(string) --* 

        The Amazon Resource Name (ARN) for the registration.

        
      

      - **RegistrationId** *(string) --* 

        The unique identifier for the registration.

        
      

      - **VersionNumber** *(integer) --* 

        The version number of the registration.

        
      

      - **FieldPath** *(string) --* 

        The path to the registration form field. You can use  DescribeRegistrationFieldDefinitions for a list of **FieldPaths**.

        
      

      - **SelectChoices** *(list) --* 

        An array of values for the form field.

        
        

        - *(string) --* 
    
      

      - **TextValue** *(string) --* 

        The text data for a free form field.

        
      

      - **RegistrationAttachmentId** *(string) --* 

        The unique identifier for the registration attachment.

        
  
  **Exceptions**
  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ValidationException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ConflictException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.InternalServerException`

  