:doc:`ConnectCases <../../connectcases>` / Client / batch_put_field_options

***********************
batch_put_field_options
***********************



.. py:method:: ConnectCases.Client.batch_put_field_options(**kwargs)

  

  Creates and updates a set of field options for a single select field in a Cases domain.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/BatchPutFieldOptions>`_  


  **Request Syntax**
  ::

    response = client.batch_put_field_options(
        domainId='string',
        fieldId='string',
        options=[
            {
                'name': 'string',
                'value': 'string',
                'active': True|False
            },
        ]
    )
    
  :type domainId: string
  :param domainId: **[REQUIRED]** 

    The unique identifier of the Cases domain.

    

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

    The unique identifier of a field.

    

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

    A list of ``FieldOption`` objects.

    

  
    - *(dict) --* 

      Object for field Options information.

      

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

        ``FieldOptionName`` has max length 100 and disallows trailing spaces.

        

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

        ``FieldOptionValue`` has max length 100 and must be alphanumeric with hyphens and underscores.

        

      
      - **active** *(boolean) --* **[REQUIRED]** 

        Describes whether the ``FieldOption`` is active (displayed) or inactive.

        

      
    

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

    
    ::

      {
          'errors': [
              {
                  'message': 'string',
                  'errorCode': 'string',
                  'value': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **errors** *(list) --* 

        A list of field errors.

        
        

        - *(dict) --* 

          Object for field Options errors.

          
          

          - **message** *(string) --* 

            Error message from creating or updating field option.

            
          

          - **errorCode** *(string) --* 

            Error code from creating or updating field option.

            
          

          - **value** *(string) --* 

            The field option value that caused the error.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`ConnectCases.Client.exceptions.InternalServerException`

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

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

  
  *   :py:class:`ConnectCases.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`ConnectCases.Client.exceptions.ServiceQuotaExceededException`

  