Request

Response

    Mutations

    updatePropertyDefinition

    mutation

    Updates a property definition.

    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.

    Template for Query:

    mutation UpdatePropertyDefinition($input: updatePropertyDefinitionInput!){
      updatePropertyDefinition(input: $input) {
        #UpdatePropertyDefinition Fields
      }
    }
    

    Arguments

    input*The inputs needed to update the property definition.
    * Required

    Possible Returns

    Value TypeDescription
    UpdatePropertyDefinitionPayload Response of update property definition operation.


    Examples

    Example 1

    This mutation updates a Property Definition based on it’s id and returns the updated property definition.

    Query:

     mutation UpdatePropertyDefinition($input: UpdatePropertyDefinitionInput!) {
           updatePropertyDefinition(input: $input) {
               propertyDefinition {
                   id
                   name
                   specification
                   isHidden
                   isReadOnly
                   isArchived
                   description
                   propertyBehavior
                   units {
                       id
                       name
                   }
               }
           }
    }
    
    Show More

    Query Variables:

    {
       "input": {
           "propertyDefinitionId": "cHJvcGRlZn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5ET0NTX1BST1BfREVGX0NPTExFQ1RJT05-cGFyYW1ldGVycy5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcjowNzkyYWUzZGEzMzA0M2FjYmU4YWE5NzUxZTNiMTg1Yi0xLjAuMA",
           "description": "description updated",
           "isHidden": true
       }
    }
    

    Response:

    {
       "data": {
           "updatePropertyDefinition": {
               "propertyDefinition": {
                   "id": "cHJvcGRlZn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5ET0NTX1BST1BfREVGX0NPTExFQ1RJT05-cGFyYW1ldGVycy5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcjowNzkyYWUzZGEzMzA0M2FjYmU4YWE5NzUxZTNiMTg1Yi0xLjAuMA",
                   "name": "Border Color 1707377019422",
                   "specification": "STRING",
                   "isHidden": true,
                   "isReadOnly": false,
                   "isArchived": false,
                   "description": "description updated",
                   "propertyBehavior": "STANDARD",
                   "units": null
               }
           }
       }
    }
    
    Show More