Custom Attributes
Create and manage Custom Attributes for your organization.
Retrieves all custom attribute definitions.
Responses
200
Successful Response
application/json
Responseany of
or
422
Validation Error
application/json
get
/custom-attributesGET /api/v1/data/custom-attributes HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
[
{
"id": 1,
"type": "text",
"label": "text",
"description": "text",
"allowed_objects": [
"source"
]
}
]Creates a new custom attribute definition using the provided request body.
Body
any ofOptional
or
or
or
or
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
post
/custom-attributesPOST /api/v1/data/custom-attributes HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"label": "text",
"description": "text",
"allowed_objects": [
"source"
],
"type": "text",
"cfg_max_char": 1
}No content
Updates and replaces an existing custom attribute definition.
Body
any ofOptional
or
or
or
or
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
put
/custom-attributesPUT /api/v1/data/custom-attributes HTTP/1.1
Host: connect.<REGION>.decube.io
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"label": "text",
"description": "text",
"allowed_objects": [
"source"
],
"id": 1,
"type": "text",
"cfg_max_char": 1
}No content
Deletes a custom attribute definition by ID.
Query parameters
idintegerRequired
Responses
200
Successful Response
application/json
Responseany
422
Validation Error
application/json
delete
/custom-attributesDELETE /api/v1/data/custom-attributes?id=1 HTTP/1.1
Host: connect.<REGION>.decube.io
Accept: */*
No content
Last updated