Skip to content

Create document class

POST/v1/document-classes/

Persist a new user-owned document class.

Body

Sent as application/json.

  • labelstringRequired

    Class label returned by the classifier.

  • descriptionstringRequired

    Short description of when this class applies.

Returns

201 with a JSON object.

Show response attributesHide response attributes
  • idstringRequired
  • labelstringRequired
  • descriptionstringRequired
  • scopestringRequired

    One of default, custom

  • create_timestring or null

Errors

Every error has the same JSON body. See Errors for the error codes and when to retry.

  • 400Bad Request
  • 401Unauthorized
  • 403Forbidden
  • 404Not Found
  • 409Conflict
  • 410Gone
  • 413Request Entity Too Large
  • 422Unprocessable Entity
  • 429Too Many Requests
  • 500Internal Server Error