POST /ariel/taggedfields/{id}
Updates a tagged field specified by an id. You must have the ADMIN | SAASADMIN capability to use this endpoint.
Updates a tagged field specified by an id. You must have the ADMIN | SAASADMIN capability to use this endpoint.
MIME Type |
---|
application/json |
Parameter | Type | Optionality | Data Type | MIME Type | Description |
---|---|---|---|---|---|
id |
path |
Required |
Number (Integer) |
text/plain |
The ID of the tagged field that you want to update. |
Parameter | Data Type | MIME Type | Description | Sample |
---|---|---|---|---|
body |
Object |
application/json |
The updated structure for the tagged field. Only the category_id and description fields can be set when updating a tagged field. All other fields are ignored.
|
{ "category_id": 42, "description": "String" } |
HTTP Response Code | Unique Code | Description |
---|---|---|
200 |
The tagged field was updated. |
|
404 |
3000 |
The specified ID does not exist. |
422 |
3001 |
The specified category ID is invalid. |
500 |
1022 |
An error occurred while updating the tagged field. |
Response Description
The updated tagged field with the specified ID. A tagged field object contains the following fields:
- id - Long - The ID of the tagged field.
- tag - Integer - Unique number for this tagged field. This is a system-generated number produced from the private_enterprise_number and the element_id fields.
- name - String - The name of the tagged field.
- category_id - Integer - The ID of the logical group that this tagged field belongs to in the UI.
- is_array - Boolean - Specifies whether the tagged field is a list.
- description - String - (Optional) Description for the tagged field.
- type - String - The type of the tagged field. Possible values are: NULL, STRUCT, Byte, Short, Integer, Long, UnsignedByte, UnsignedShort, UnsignedInt, UnsignedLong, BigInteger, Double, Float, Port, Host, HostV4V6, HostV6, MACAddress, String, ByteArray, UnsignedIntHex, Boolean, Binary
- uuid - String - The ID for this tagged field, represented as a UUID.
- modified_date - Long - The time that the tagged field was last modified, specified in milliseconds since epoch.
- creation_date - Long - The time that the tagged field was created, specified in milliseconds since epoch.
Response Sample
{
"category_id": 42,
"creation_date": 42,
"description": "String",
"id": 42,
"is_array": true,
"modified_date": 42,
"name": "String",
"tag": 42,
"type": "String",
"uuid": "String"
}