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

Update Category

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
PATCH
/categories/{category_id}/
Last modified:2025-03-16 05:06:40

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
category_id
string 
required
Body Params application/json
name
string 
optional
description
string 
optional
parent
string 
optional
Example
{
    "name": "",
    "description": "",
    "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 PATCH 'https://preprod.api.crego.io/categories//' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "",
    "description": "",
    "parent": ""
}'

Responses

🟢200Success
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": "01JNJJJB67RET81V45KKRWTX1B",
    "tenant_id": "60371b35-d8f5-4a7f-beee-97aada4bb8a8",
    "created_by": "9b46aea4-33c8-41ee-841f-97358ef0b10e",
    "updated_by": "9b46aea4-33c8-41ee-841f-97358ef0b10e",
    "created_at": "2025-03-05T12:45:52.157428Z",
    "updated_at": "2025-03-05T13:03:02.230006Z",
    "name": "Agreeee",
    "description": "Tracto cuppedia compono bellum demulceo apto stips constans. Maiores considero deprimo. Denego bestia ulciscor exercitationem talis basium torqueo decens canis. Comprehendo synagoga solio molestiae cultura vado argentum harum accusator. Ut volutabrum vulp",
    "parent": null
}
Previous
Create Category
Next
List Category
Built with