Data SubjectsCreate data subject category
Data Subjects

Create data subject category

Creates a new data subject category.

curl -X POST "https://api.neostra.io/api/v1/data-subjects" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "name": "Customers",
  "description": "example_string"
}'
{
  "status": 200,
  "message": "Success",
  "data": {},
  "errors": [
    "example_string"
  ]
}
POST
/api/v1/data-subjects
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

Name of the data subject category

descriptionstring

Description of the category

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

Name of the data subject category

descriptionstring

Description of the category

Responses