Request

Response

    Mutations

    createPropertyDefinitions

    mutation

    Creates multiple property definitions in a property definition collection.

    Note: You can authenticate using a two-legged token. To use a three-legged token, you must have ‘Owner’ or ‘Editor’ access to the APS App. This bulk mutation has a max input limit of 30.

    Template for Mutation:

    mutation CreatePropertyDefinitions($input: createPropertyDefinitionsInput!){
      createPropertyDefinitions(input: $input) {
        # CreatePropertyDefinitionsPayload Fields
      }
    }
    

    Arguments

    input*The inputs needed to create property definitions.
    * Required

    Possible Returns

    Value TypeDescription
    CreatePropertyDefinitionsPayload Response of create property definitions operation.


    Examples

    Example 1

    This mutation creates property definitions based on the given inputs.

    Query:

     mutation CreatePropertyDefinitions($input: CreatePropertyDefinitionsInput!) {
           createPropertyDefinitions(input: $input) {
               propertyDefinitions {
                   id
                   name
                   propertyBehavior
                   specification
                   description
                   isHidden
                   isArchived
                   units {
                       id
                   }
               }
       }
    }
    
    Show More

    Query Variables:

    {
     "input": {
       "propertyDefinitionCollectionId": "cHJvcGRlZmNvbH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5wcm9wX2RlZl9jb2xfMTc5MzM3MzMyNTQ2Nw",
       "propertyDefinitionsInput": [
           {
               "name": "Background Color 1793373337304",
               "specification": "STRING",
               "propertyBehavior": "STANDARD",
               "description": "bg color",
               "isHidden": false
           },
           {
               "name": "Border Color 1793373337304",
               "specification": "STRING",
               "propertyBehavior": "TIMELESS",
               "description": "border color",
               "isReadOnly": false
           }
       ]
     }
    }
    
    Show More

    Response:

    {
       "data": {
           "createPropertyDefinitions": {
               "propertyDefinitions": [
                   {
                       "id": "cHJvcGRlZn5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5wcm9wX2RlZl9jb2xfMTc5MzM3MzMyNTQ2N35wYXJhbWV0ZXJzLkFDTjRFdmRITE1UWml3N25ma0hVcFBqc0E0VmZaYW5UOmYyYjc2MDViNjRkYzRlNzk5YTczYjdjYTlkZTJmYmI2LTEuMC4w",
                       "name": "Background Color 1793373337304",
                       "propertyBehavior": "STANDARD",
                       "specification": "STRING",
                       "description": "bg color",
                       "isHidden": false,
                       "isArchived": false,
                       "units": null
                   },
                   {
                       "id": "cHJvcGRlZn5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5wcm9wX2RlZl9jb2xfMTc5MzM3MzMyNTQ2N35wYXJhbWV0ZXJzLkFDTjRFdmRITE1UWml3N25ma0hVcFBqc0E0VmZaYW5UOmQ5ZWE0NmIxZmZlYzRhZjY4ZjRkNWM0ZjBjYjAxZmNiLTEuMC4w",
                       "name": "Border Color 1793373337304",
                       "propertyBehavior": "TIMELESS",
                       "specification": "STRING",
                       "description": "border color",
                       "isHidden": false,
                       "isArchived": false,
                       "units": null
                   }
               ]
           }
       }
    }
    
    Show More