GET /stocks/material-types/ancestor-folders/{materialTypeId}

Get a material type ancestor folders

This endpoint allows the user to get all folder path of a specific material type.

Operation ID: getMaterialTypeAncestors
lock This endpoint requires a Bearer token in the Authorization header.

Path Parameters

Name Type Description
materialTypeId required
path
string

The material type ID

Responses

data object

MaterialTypeFolder model structure details

id string read-only

ID of the Material Type Folder

type string read-only

Model type

stock-material-type-folder
attributes object
material_type_folder_id string read-only

ID of the material type folder

Example: 1

parent_id string

ID of the associated folder of the material type folder

Example: 1

name string

Name of the material type folder

Example: Chemical

code string

Code of the material type folder

Example: CH-00001

created_at string (date-time)

Creation date

Example: 2021-01-01 00:00:00

updated_at string (date-time)

Last update date

Example: 2021-01-01 00:00:00

deleted_at string (date-time) | null

Deletion date

Example: 2021-01-01 00:00:00

status string
error
error object
http_code integer
401
message string

Example: Authentication token invalid.

more_info string
status string
error
error object
http_code integer
404
message string

Example: Resource not found

more_info string | null
status string
error
error object
http_code integer
429
message string

Example: Too Many Requests.

more_info string
status string
error
error object
http_code integer
500
message string

Example: An error has occurred during the request.

more_info string