Generate document attribute value
POST/documents/:documentId/attributes/:attributeKey/generate
Allocates the next value from the numbering sequence configured for the attribute key and stores it on the document. If the document already has a value for the attribute key, the existing value is returned.
Request
Path Parameters
Document Identifier
Attribute Key
Query Parameters
Site Identifier
Responses
- 200
- 400
- 404
200 OK
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
Array [
]
]
attribute
object
required
Attribute key
Attribute with string value
Attribute with string values
Attribute with number value
Attribute with number values
Attribute with boolean value
Attribute with date value
Attribute with date values
Inserted Timestamp
User who added attribute
Attribute Value Type
Possible values: [BOOLEAN, DATE, KEY_ONLY, NUMBER, STRING, PUBLICATION, CLASSIFICATION, COMPOSITE_STRING, RELATIONSHIPS, WATERMARK, ENTITY]
entity
object
Entity identifier
Entity Type identifier
Entity Name
Inserted Timestamp
attributes
object[]
List of Entity Attributes
Attribute key
Attribute with string value
Attribute with string values
Attribute with number value
Attribute with number values
Attribute with boolean value
Attribute with date value
Attribute with date values
Attribute Value Type
Possible values: [BOOLEAN, DATE, KEY_ONLY, NUMBER, STRING, PUBLICATION, CLASSIFICATION, COMPOSITE_STRING, RELATIONSHIPS, WATERMARK, ENTITY]
entities
object[]
Attribute with entity values
Entity identifier
Entity Type identifier
Entity Name
Inserted Timestamp
attributes
object[]
List of Entity Attributes
Attribute key
Attribute with string value
Attribute with string values
Attribute with number value
Attribute with number values
Attribute with boolean value
Attribute with date value
Attribute with date values
Attribute Value Type
Possible values: [BOOLEAN, DATE, KEY_ONLY, NUMBER, STRING, PUBLICATION, CLASSIFICATION, COMPOSITE_STRING, RELATIONSHIPS, WATERMARK, ENTITY]
Allocated sequence number
1Sequence period used for the allocation
2026{
"attribute": {
"key": "string",
"stringValue": "string",
"stringValues": [
"string"
],
"numberValue": 0,
"numberValues": [
0
],
"booleanValue": true,
"dateValue": "string",
"dateValues": [
"string"
],
"insertedDate": "string",
"userId": "string",
"valueType": "BOOLEAN",
"entity": {
"entityId": "string",
"entityTypeId": "string",
"name": "string",
"insertedDate": "string",
"attributes": [
{
"key": "string",
"stringValue": "string",
"stringValues": [
"string"
],
"numberValue": 0,
"numberValues": [
0
],
"booleanValue": true,
"dateValue": "string",
"dateValues": [
"string"
],
"valueType": "BOOLEAN"
}
]
},
"entities": [
{
"entityId": "string",
"entityTypeId": "string",
"name": "string",
"insertedDate": "string",
"attributes": [
{
"key": "string",
"stringValue": "string",
"stringValues": [
"string"
],
"numberValue": 0,
"numberValues": [
0
],
"booleanValue": true,
"dateValue": "string",
"dateValues": [
"string"
],
"valueType": "BOOLEAN"
}
]
}
]
},
"sequence": 1,
"period": "2026"
}
Attribute key is not eligible for generated values
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}
Document or numbering sequence not found
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}