Container Service
Container Type

Create a new container type

1min
POST

A container can be a bag or box or pallet etc. These different type of containers are known as container-types. Important: - Container types once created cannot be deleted. - Once the Container type is created, its name and isLeaf property cannot be changed. Asynchronous API for creating a new Container Type by specifying the following parameters in the request body:

PARAMETERDESCRIPTIONTYPEVALIDATION
name*A unique name that represents a container of this container type.stringpattern: It should match a through z or A through Z, inclusive (range).minLength: 3 maxLength: 64
isLeafDefines whether this container-type will have actual physical items or not. Such types of containers are termed as leaf containers.booleandefault: false
allowedParentRules defining the allowed container types as parent of a container type.
ㅤ↳oneOfList of container types allowed as parent of this container type.stringminItems: 1 maxItems: 16minLength: 3 maxLength: 64
ㅤ↳notList of container types not allowed as parent of this container type.stringminItems: 1 maxItems: 16minLength: 3 maxLength: 64
callbackRepresents callback URL, which can be to notify status(success/failed) of API.object{url: "string", meta: {}}
*This is required.
HTTP Status Code Summary
CodeDescription
202 - Accepted
400 - Bad RequestThe request was unacceptable, often due to missing a required parameter.
401 - UnauthorizedNo valid API key provided.
404 - Not FoundThe requested resource doesn't exist.
503 - Server ErrorSomething went wrong. (These are rare.)
Header Parameters
X-COREOS-REQUEST-ID
*
X-COREOS-TID
*
X-COREOS-ACCESS
*
X-COREOS-USERINFO
X-COREOS-CALLBACK-SECRET
Body Parameters
body
*
Description
Create new container type
name
*
isLeaf
allowedParent
Responses
202
Accepted
data
request
400
Bad Request
error
request
401
Unauthorized
error
request
404
Not Found
error
request
503
Server Error
error
request
Curl
JS
Ruby
Python
Responses
202
400
401
404
503