Updating custom value properties
As shown in some previous examples, the values of custom properties can be modified
through the
properties field of input types such as
DocumentPropertiesInput supplied as input arguments to various
mutations.
The properties field is an array of PropertyIdentifierAndScalarValue custom
scalar values. The format of this custom scalar is defined by the Content Services GraphQL product.
Each custom scalar value is formatted as a single key and value pair. The key is the symbolic name
of a property. The value is whatever type is appropriate for that property or an array of those
types for a multi-value property. A single-value property that does not require a value can also be
set to null.
The following example shows the format of values for the various types of properties. The names
CustomString and so on represent the actual symbolic names of the custom
properties.mutation {
updateDocument(
repositoryIdentifier:"OS1"
identifier:”{A0CC2C69-0000-C618-A0A4-3FA294C1AE57}”
documentProperties:{
properties: [
{CustomString: "Updated value"}
{CustomInt: 123}
{CustomFloat: 54.12}
{CustomDate: “2020-10-11T00:37:01.569Z”}
{CustomBool: true}
{CustomNonRequired: null}
{CustomStringList: [“Item 1”, “Item 2”]}
{CustomIntList: [123, 456]}
{CustomFloatList: [54.12, 67.8]}
{CustomDateList: [“2020-10-11T00:37:01.569Z”, “2020-11-01T10:00:00.000Z”]}
{CustomBoolList: [true, false]}
]
}
)
{
id
name
}
}