Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Category
  • Omni
  • Document APIs
  • Storage
    • Create Storage
      POST
    • Update Storage
      PATCH
    • List Storage
      GET
    • Get Storage
      GET
    • Test Credential
      GET
  • Category
    • Create Category
      POST
    • Update Category
      PATCH
    • List Category
      GET
    • Get Category
      GET
  • Document
    • Create Document
      POST
    • Update Document
      PATCH
    • List Document
      GET
    • Delete Document
      DELETE
    • Get Document
      GET
    • Upload Files
      POST
    • Downlaod Files
      GET
    • Delete File
      DELETE
    • Get all tags
      GET
    • Inactive
      PUT
    • Reject
      PUT
    • Approve
      PUT
  • Sharing
    • Share Document
      POST
    • Preview Shared Document
      GET
    • List Shared Documents
      GET
    • Get Shared Document
      GET
    • Update Shared Document
      PATCH
    • Delete Document Share
      DELETE
  1. Category

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
}
Previous
Test Credential
Next
Update Category
Built with