Container Service
Container Type - Attributes Co...

Update core attributes configurations for a Container type.

1min
PUT

API to update core attributes configuration of a container type specified by containerTypeName.The configuration includes:

  1. List of core attributes (names) - Data type of each core attribute.
  2. Validation of core attribute values, if required, for each core attribute.

Important:

  • If the attribute is already defined for the container type- The validation rules will get updated for the attribute.
  • If the attribute is not defined for the container type- It is added as a new core attribute for the container type.
  • On successful execution of the API, all updates including change in data type will take effect immediately for the container type.
PARAMETERDESCRIPTIONTYPEVALIDATION
attributes*
ㅤ↳name*Name of the attribute to be updated.stringExample: capacityminLength: 3 maxLength: 64
ㅤ↳dataType*Field for the datatype of an attribute.stringExample: integerEnum: [string, number, boolean, object, array]
ㅤ↳descriptionUpdated description of the attribute.stringminLength: 1 maxLength: 256
ㅤ↳indexedField to specify if the attribute is to be indexed. Filter or search operation on the basis of a custom attribute will be only allowed if this field is set as TRUE.booleanDefault: false
defaultValue
ㅤ↳validationSpecifies all the validations to be performed on an attribute, when a container of this type is created/updated.
ㅤㅤㅤ↳rangeField to specify the range that the attribute value must lie. In case of "string" data type, range will be the length of string value.numbermin: The min value, inclusive.max: The max value, inclusive.
ㅤㅤㅤ↳regexField to specify the regex pattern that the value of an attribute MUST match.stringminLength: 1 maxLength: 512
ㅤㅤㅤ↳valueOneOfField to specify enum values for an attribute. list of valueOneOf should be homogeneous.EnumminItems: 1
ㅤㅤㅤ↳requiredField to specify if the value for the attribute is mandatory or not. If TRUE, the value MUST be provided.booleanDefault value: false
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.)
Path Parameters
containerTypeName
*
Header Parameters
X-COREOS-REQUEST-ID
*
X-COREOS-TID
*
X-COREOS-ACCESS
*
X-COREOS-USERINFO
X-COREOS-CALLBACK-SECRET
X-COREOS-ORIGIN-TOKEN
*
Body Parameters
body
*
Description
Update core attributes of particular type of container
attributes
*
Responses
202
Accepted
data
request
400
Error Occurred
error
request
401
Error Occurred
error
request
404
Error Occurred
error
request
503
Error Occurred
error
request
Curl
JS
Ruby
Python
Responses
202
400
401
404
503