Skip to content

Classifications

Get the list of Classifications

Path

GET /odata/Classifications

Description

Returns a paged list of existing Classifications within the logged-in organization.

Note

You can filter the results as follows:

  • For an exact match, use: $filter parameter–entity eq ‘string’
  • For a partial match, use: $filter=contains parameter–contains(entity, ‘string’)

Request parameters

Parameter
Explanation
api-version: string default: 1.0
in header
The requested API version.
$filter: string
in query
Restricts the set of items returned. Supports up to 100 expressions.
$orderby: string
in query
Specifies the order in which items are returned. Supports up to 5 expressions.
$search: string
in query
Searches across all supported fields.
$top: string
in query
Returns only the first n results.
$skip: string
in query
Skips the first n results.
Authorization: string default:
Bearer access_token
in header
Specify the type of the token (bearer) and insert the access_token obtained during authentication.

Responses

Response
Explanation
200 OK OK
400 Bad Request The request contains incorrect input data.
401 Unauthorized The specified access_token is incorrect, or the access_token has expired.
403 Forbidden The user doesn’t have the appropriate privileges.
500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request.

Properties

Property
Explanation
classificationId: string (uuid) Unique Identifier of the Сlassification
classificationName: string Name of the Сlassification
classificationTypeId: tiny int Unique Identifier of the Classification Type
classificationTypeValue: string Type Value of the Classification
organizationId: string (uuid) Unique Identifier of the Organization
organizationNo: string Identification Number of the Organization
organizationName: string Name of the Organization
activeStatus: boolean Is the Classification active or not?
dateCreated: string
(date-time)
Date when the Classification was created
createdBy: string (uuid) Unique Identifier of the user who created the Classification
createdByName: string Name of the user who created the Classification
lastUpdated: string (date-time) Last Date when the Classification was updated
lastUpdatedBy: string (uuid) Unique Identifier of the last user who updated the Classification
lastUpdatedByName: string Name of the last user who updated the Classification
Response Content-types: APPLICATION/JSON, APPLICATION/XML
Response example (200 OK)
{
    "@odata.context": "link",
    "@odata.count": "number",
    "value": [
        {
            "classificationId": "00000000-0000-0000-0000-000000000000",
            "classificationName": "string",
            "classificationTypeId": "tiny int",
            "classificationTypeValue": "string",
            "organizationId": "00000000-0000-0000-0000-000000000000",
            "organizationNo": "string",
            "organizationName": "string",
            "activeStatus": "boolean",
            "dateCreated": "string (date-time)",
            "createdBy": "00000000-0000-0000-0000-000000000000",
            "createdByName": "string",
            "lastUpdated": "string (date-time)",
            "lastUpdatedBy": "00000000-0000-0000-0000-000000000000",
            "lastUpdatedByName": "string"
        }
    ],
    "@odata.nextLink": "link"
}

Create a new Classification

Path

POST /odata/Classifications

Description

Creates a new Classification within the logged-in organization.

Request body

Parameter
Explanation
classificationName: string
required
Name of the Сlassification
classificationTypeId: tiny int
required
Unique Identifier of the Classification Type
Request Content-types: APPLICATION/JSON, APPLICATION/XML
Request Example
{
    "classificationName": "string",
    "classificationTypeId": "tiny int"
}

Request parameters

Parameter
Explanation
api-version: string default: 1.0
in header
The requested API version.
Authorization: string default:
Bearer access_token
in header
Specify the type of the token (bearer) and insert the access_token obtained during authentication.

Responses

Response
Explanation
200 OK OK
400 Bad Request The request contains incorrect input data.
401 Unauthorized The specified access_token is incorrect, or the access_token has expired.
403 Forbidden The user doesn’t have the appropriate privileges.
500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request.
Response Content-types: APPLICATION/JSON, APPLICATION/XML
Response Example (200 OK)
"00000000-0000-0000-0000-000000000000"

Get the specified Classification

Path

GET /odata/Classifications({ClassificationId})

Description

Returns the details of the Classification specified by ID within the logged-in organization.

Request parameters

Parameter
Explanation
classificationId: string (uuid)
required
in path
Enter the ID of the Classification.
api-version: string default: 1.0
in header
The requested API version.
Authorization: string default:
Bearer access_token
in header
Specify the type of the token (bearer) and insert the access_token obtained during authentication.

Responses

Response
Explanation
200 OK OK
400 Bad Request The request contains incorrect input data.
401 Unauthorized The specified access_token is incorrect, or the access_token has expired.
403 Forbidden The user doesn’t have the appropriate privileges.
404 Not Found The specified ID is absent in the system.
500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request.

Properties

Property
Explanation
classificationId: string (uuid) Unique Identifier of the Сlassification
classificationName: string Name of the Сlassification
classificationTypeId: tiny int Unique Identifier of the Classification Type
classificationTypeValue: string Type Value of the Classification
organizationId: string (uuid) Unique Identifier of the Organization
organizationNo: string Identification Number of the Organization
organizationName: string Name of the Organization
activeStatus: boolean Is the Classification active or not?
dateCreated: string
(date-time)
Date when the Classification was created
createdBy: string (uuid) Unique Identifier of the user who created the Classification
createdByName: string Name of the user who created the Classification
lastUpdated: string (date-time) Last Date when the Classification was updated
lastUpdatedBy: string (uuid) Unique Identifier of the last user who updated the Classification
lastUpdatedByName: string Name of the last user who updated the Classification
Response Content-types: APPLICATION/JSON, APPLICATION/XML
Response example (200 OK)
{
    "@odata.context": "link",
    "classificationId": "00000000-0000-0000-0000-000000000000",
    "classificationName": "string",
    "classificationTypeId": "tiny int",
    "classificationTypeValue": "string",
    "organizationId": "00000000-0000-0000-0000-000000000000",
    "organizationNo": "string",
    "organizationName": "string",
    "activeStatus": "boolean",
    "dateCreated": "string (date-time)",
    "createdBy": "00000000-0000-0000-0000-000000000000",
    "createdByName": "string",
    "lastUpdated": "string (date-time)",
    "lastUpdatedBy": "00000000-0000-0000-0000-000000000000",
    "lastUpdatedByName": "string"
}

Partially update the specified Classification

Path

PATCH /odata/Classifications({сlassificationId})

Description

Partially updates the details of the Classification specified by ID.

Request body

Parameter
Explanation
classificationName: string Name of the Сlassification
classificationTypeId: tiny int Unique Identifier of the Classification Type
activeStatus: boolean Is the Status of the Classification active or not?
Request Content-types: APPLICATION/JSON, APPLICATION/XML
Request Example
{
    "classificationName": "string",
    "classificationTypeId": "tiny int",
    "activeStatus": "boolean"
}

Request parameters

Parameter
Explanation
classificationId: string (uuid)
required
in path
Enter the ID of the Classification.
api-version: string default: 1.0
in header
The requested API version.
Authorization: string default:
Bearer access_token
in header
Specify the type of the token (bearer) and insert the access_token obtained during authentication.

Responses

Response
Explanation
200 OK OK
400 Bad Request The request contains incorrect input data.
401 Unauthorized The specified access_token is incorrect, or the access_token has expired.
403 Forbidden The user doesn’t have the appropriate privileges.
404 Not Found The specified ID is absent in the system.
500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request.