AttributesUpdate attribute
Attributes

Update attribute

Updates an existing attribute definition.

curl -X PATCH "https://api.neostra.io/api/v1/attributes/example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "name": "Email Address",
  "category": "PII",
  "sensitivity": "LOW",
  "description": "example_string"
}'
{
  "status": 200,
  "message": "Success",
  "data": {},
  "errors": [
    "example_string"
  ]
}
PATCH
/api/v1/attributes/{id}
PATCH
Bearer Token (JWT)
Bearer Tokenstring
Required

JWT bearer token for authentication

JWT bearer token for authentication
path
idstring
Required

The resource identifier

Content-Typestring
Required

The media type of the request body

Options: application/json
namestring

Attribute name

categorystring

Attribute category

sensitivitystring

Sensitivity level

Options: LOW, MEDIUM, HIGH, CRITICAL
descriptionstring

Description of the attribute

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT bearer token for authentication

Path Parameters

idstring
Required

The resource identifier

Body

application/json
namestring

Attribute name

categorystring

Attribute category

sensitivitystring

Sensitivity level

Allowed values:LOWMEDIUMHIGHCRITICAL
descriptionstring

Description of the attribute

Responses

statusinteger

HTTP status code

messagestring

Response message

dataobject

Response payload

errorsstring[]

List of error details, if any