:doc:`CloudDirectory <../../clouddirectory>` / Client / put_schema_from_json

********************
put_schema_from_json
********************



.. py:method:: CloudDirectory.Client.put_schema_from_json(**kwargs)

  

  Allows a schema to be updated using JSON upload. Only available for development schemas. See `JSON Schema Format <https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_jsonformat.html#schemas_json>`__ for more information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/clouddirectory-2017-01-11/PutSchemaFromJson>`_  


  **Request Syntax**
  ::

    response = client.put_schema_from_json(
        SchemaArn='string',
        Document='string'
    )
    
  :type SchemaArn: string
  :param SchemaArn: **[REQUIRED]** 

    The ARN of the schema to update.

    

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

    The replacement JSON schema.

    

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

    
    ::

      {
          'Arn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        The ARN of the schema to update.

        
  
  **Exceptions**
  
  *   :py:class:`CloudDirectory.Client.exceptions.InternalServiceException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidArnException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.RetryableConflictException`

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

  
  *   :py:class:`CloudDirectory.Client.exceptions.LimitExceededException`

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

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidSchemaDocException`

  
  *   :py:class:`CloudDirectory.Client.exceptions.InvalidRuleException`

  