- Omni
- Document APIs
- Storage
- Category
- Document
- Sharing
Create Category
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/categories/
Last modified:2025-04-01 10:29:54
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
name
string
required
<= 100 characters
description
string
optional
<= 255 characters
parent
string | null
optional
Example
{
"name": "KYC",
"description": "All KYC Documents",
"parent": ""
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://preprod.api.crego.io/categories/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "KYC",
"description": "All KYC Documents",
"parent": ""
}'
Responses
🟢201Created
application/json
Body
id
string
required
Match pattern:
^[a-zA-Z0-9._-]{8,40}$
tenant_id
string
required
Match pattern:
^[a-zA-Z0-9._-]{8,40}$
created_by
string <uuid>
required
updated_by
string <uuid>
required
created_at
string <date-time>
required
updated_at
string <date-time>
required
name
string
required
<= 100 characters
description
string
optional
<= 255 characters
parent
string | null
optional
Example
{
"id": "01JPEZHB2HJ82CGMM43N4HFB11",
"tenant_id": "59ecf94e-054d-43ee-83db-b158ab9d7f67",
"created_by": "cffe818a-5003-4116-9104-069f7e062bb4",
"updated_by": "",
"created_at": "2025-03-16T13:31:14.842587Z",
"updated_at": "2025-03-16T13:31:14.842733Z",
"name": "KYC",
"description": "All KYC Documents",
"parent": null
}