AttributesCreate attribute definition
Attributes

Create attribute definition

Creates a new attribute definition.

curl -X POST "https://api.neostra.io/api/v1/attributes" \
  -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"
  ]
}
POST
/api/v1/attributes
POST
Bearer Token (JWT)
Bearer Tokenstring
Required

JWT bearer token for authentication

JWT bearer token for authentication
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

Body

application/json
namestring

Attribute name

categorystring

Attribute category

sensitivitystring

Sensitivity level

Allowed values:LOWMEDIUMHIGHCRITICAL
descriptionstring

Description of the attribute

Responses