Request

Response

    Mutations

    updatePropertyDefinitionLocalization

    mutation

    Updates localization resources for custom property definitions. Note: Base property localization resources are locked and cannot be modified.

    Template for Mutation:

    mutation UpdatePropertyDefinitionLocalization($input: updateLocalizationInput!){
      updatePropertyDefinitionLocalization(input: $input) {
        # PropertyDefinition Fields
      }
    }
    

    Arguments

    input*Contains the property definition ID and locale
    * Required

    Possible Returns

    Value TypeDescription
    PropertyDefinition Data object that represents property definition.

    Property definition is an object that acts as a template to create properties on an entity.



    Examples

    Example 1

    Retrieve application details along with all the collections and property definitions attached to APS application based on authentication token and it’s localization resources.

    Query:

     mutation UpdatePropertyDefinitionLocalization($input: UpdateLocalizationInput!, $filter: LocalesFilterInput) {
     updatePropertyDefinitionLocalization(input: $input) {
       id
       localizedName
       localizedDescription
       localizations(filter: $filter) {
         locale
         localizedFields {
           value
           name
         }
       }
     }
    }
    
    Show More

    Query Variables:

    {
     "input": {
       "id": "cHJvcGRlZn5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5wcm9wX2RlZl9jb2xfMTc2ODg4MjUxNzkxOH5wYXJhbWV0ZXJzLkFDTjRFdmRITE1UWml3N25ma0hVcFBqc0E0VmZaYW5UOmQ5YTJjZTEwYzk0MjQ4YzFhZGVmMmExNTZjZTI4MjMxLTEuMC4w",
       "localizations": [
         {
           "description": "Couleur de la bordure Description",
           "locale": "fr",
           "name": "Couleur de bordure 1768882702196"
         }
       ]
     },
     "filter": {
       "locales": ["fr"]
     }
    }
    
    Show More

    Response:

    {
       "data": {
           "updatePropertyDefinitionLocalization": {
               "id": "cHJvcGRlZn5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5BQ040RXZkSExNVFppdzduZmtIVXBQanNBNFZmWmFuVH5wcm9wX2RlZl9jb2xfMTc2ODg4MjUxNzkxOH5wYXJhbWV0ZXJzLkFDTjRFdmRITE1UWml3N25ma0hVcFBqc0E0VmZaYW5UOmQ5YTJjZTEwYzk0MjQ4YzFhZGVmMmExNTZjZTI4MjMxLTEuMC4w",
               "localizedName": "Border Color 1768882702196",
               "localizedDescription": "border color",
               "localizations": [
                   {
                       "locale": "fr",
                       "localizedFields": [
                           {
                               "value": "Couleur de bordure 1768882702196",
                               "name": "name"
                           },
                           {
                               "value": "Couleur de la bordure Description",
                               "name": "description"
                           }
                       ]
                   }
               ]
           }
       }
    }
    
    Show More