Mutations
createPropertyDefinitionCollection
Creates 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.
Template for Query:
mutation CreatePropertyDefinitionCollection($input: createPropertyDefinitionCollectionInput){
createPropertyDefinitionCollection(input: $input) {
#CreatePropertyDefinitionCollection Fields
}
}
Template for Query Variables:
{
"input" : "<SOME-CREATEPROPERTYDEFINITIONCOLLECTION-INPUT-TYPE-SCALAR-VALUE>"
}
Arguments
input | The inputs needed to create a property definition collection. |
Possible Returns
Value Type | Description |
---|---|
CreatePropertyDefinitionCollectionPayload | Return payload on property definition collection creation. |
Examples
Example 1
Create a Property Definition Collection.
Query:
mutation CreatePropertyDefinitionCollection($propDefCollectionName: String!, $description: String) {
createPropertyDefinitionCollection(
input: { name: $propDefCollectionName, description: $description }
) {
propertyDefinitionCollection {
id
name
description
}
}
}
Show More
Query Variables:
{
"propDefCollectionName": "prop_def_col_1725880734695",
"description": "collection description"
}
Response:
{
"data": {
"createPropertyDefinitionCollection": {
"propertyDefinitionCollection": {
"id": "cHJvcGRlZmNvbH5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5DZlhvYUM0SzUzU1R3YjZUbklyWFhaVEFJRWRkRzlBcn5wcm9wX2RlZl9jb2xfMTcyNTg4MDczNDY5NQ",
"name": "prop_def_col_1725880734695",
"description": "collection description"
}
}
}
}
Show More