Corporate hierarchy created
Type: object
Domain: corporate
Event: hierarchy_creation
Version: 1
id required
Title: Hierarchy unique identifier
Description: Hierarchy unique identifier generated by Pismo
Type: string
Min length: 1
Max length: 36
Example:
10b5e544-a48b-4f1f-9eda-0782505746a0
name required
Title: Hierarchy name
Type: string
Min length: 1
Max length: 40
Example:
Main hierarchy
levels required
Type: array
id required
Title: Level unique identifier
Description: Level unique identifier
Type: string
Min length: 1
Max length: 36
Example:
16c6e871-028f-46c0-a5d5-e9fca2990de4
description
Title: Level description
Description: Level description
Type: string
Min length: 1
Max length: 80
Example:
Country level
index
Title: Level index
Description: Level index
Type: integer
Example:
null
name
Title: Level name
Description: Level name
Type: string
Min length: 1
Max length: 40
Example:
Country
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"title": "Corporate hierarchy created",
"required": [
"id",
"name",
"levels"
],
"properties": {
"id": {
"title": "Hierarchy unique identifier",
"description": "Hierarchy unique identifier generated by Pismo",
"type": "string",
"minLength": 1,
"maxLength": 36,
"examples": [
"10b5e544-a48b-4f1f-9eda-0782505746a0"
]
},
"name": {
"title": "Hierarchy name",
"type": "string",
"minLength": 1,
"maxLength": 40,
"examples": [
"Main hierarchy"
]
},
"levels": {
"title": "List of levels",
"type": [
"array"
],
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"title": "Level unique identifier",
"description": "Level unique identifier",
"type": "string",
"minLength": 1,
"maxLength": 36,
"examples": [
"16c6e871-028f-46c0-a5d5-e9fca2990de4"
]
},
"description": {
"title": "Level description",
"description": "Level description",
"type": "string",
"minLength": 1,
"maxLength": 80,
"examples": [
"Country level"
]
},
"index": {
"title": "Level index",
"description": "Level index",
"type": "integer",
"minimum": 1,
"maxItems": 4294967295,
"examples": [
0
]
},
"name": {
"title": "Level name",
"description": "Level name",
"type": "string",
"minLength": 1,
"maxLength": 40,
"examples": [
"Country"
]
}
}
}
}
}
}
{
"id": "10b5e544-a48b-4f1f-9eda-0782505746a0",
"name": "Main hierarchy",
"levels": {
"id": "16c6e871-028f-46c0-a5d5-e9fca2990de4",
"description": "Country level",
"index": 0,
"name": "Country"
}
}
Updated 24 days ago