For the complete documentation index, see llms.txt. This page is also available as Markdown.

Material Categories

Get material categories

get
/material_categories/

This api is used to sync material categories with WorkorderApp. Each material_categories record can contain the following data:

Parameter
Description
Required
Type (size)

mct_mat_code

Material code

Y

Varchar (255)

mct_cat_code

Category code

Y

Varchar (255)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
tokenstringOptionalExample: {{client_token}}
software_tokenstringOptionalExample: {{software_token}}
Responses
200

Response_200

No content

get/material_categories/
GET /material_categories/ HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Response_200

No content

Add material categories

post
/material_categories/

This api is used to sync material categories with WorkorderApp. Each material_categories record can contain the following data:

Parameter
Description
Required
Type (size)

mct_mat_code

Material code

Y

Varchar (255)

mct_cat_code

Category code

Y

Varchar (255)hmxg

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
tokenstringOptionalExample: {{client_token}}
software_tokenstringOptionalExample: {{software_token}}
Responses
200

Response_200

No content

post/material_categories/
POST /material_categories/ HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Response_200

No content

Delete material_categories by id

delete
/material_categories/

This api is used to delete the connection between materials and categories from OutSmart.

Deleting material_categories can also be done by providing the material code and category code.

Records can be deleted by providing a list of ids which can be retrieved through "GET material_categories".

Parameter
Description
Required
Type (size)

ids

A list of ids to be deleted

Y

array

Supported from OutSmart Backoffice v8.2.0

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
tokenanyOptionalExample: {{client_token}}
software_tokenanyOptionalExample: {{software_token}}
Responses
200

Response_200

application/json
codeintegerOptional
messagesstring · style[]Optional
responsenullOptional
delete/material_categories/
DELETE /material_categories/ HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Response_200

{
  "code": 200,
  "messages": [
    "Rows deleted: 3"
  ],
  "response": null
}

Last updated

Was this helpful?