Prompt Categories
Retrieves a paginated list of prompt categories for the specified prompt, optionally prompted and sorted.
Bearer authentication with JWT
The object identifier of the prompt.
The page number to retrieve.
The number of items per page.
Optional search text to prompt categories.
The sorting option for the results.
Whether to sort in descending order.
trueOK
Forbidden
GET /projects/{projectIdentifier}/prompts/{promptObjectIdentifier}/categories HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"name": "text",
"colour": 0,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"colourHex": "text"
}
]Creates a new prompt category for the specified prompt.
Bearer authentication with JWT
The object identifier of the prompt.
OK
Bad Request
Forbidden
POST /projects/{projectIdentifier}/prompts/{promptObjectIdentifier}/categories HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"name": "text",
"colour": 0
}{
"name": "text",
"colour": 0,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"colourHex": "text"
}Retrieves a prompt category by its object identifier.
Bearer authentication with JWT
The unique identifier of the prompt category.
OK
Forbidden
Not Found
GET /projects/{projectIdentifier}/prompts/{promptObjectIdentifier}/categories/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"colour": 0,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"colourHex": "text"
}Updates a prompt category by its object identifier.
Bearer authentication with JWT
The unique identifier of the prompt category to update.
OK
Bad Request
Forbidden
Not Found
PUT /projects/{projectIdentifier}/prompts/{promptObjectIdentifier}/categories/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"name": "text",
"colour": 0
}{
"name": "text",
"colour": 0,
"objectIdentifier": "123e4567-e89b-12d3-a456-426614174000",
"colourHex": "text"
}Deletes a prompt category by its object identifier.
Bearer authentication with JWT
The unique identifier of the prompt category to delete.
No Content
Forbidden
Not Found
DELETE /projects/{projectIdentifier}/prompts/{promptObjectIdentifier}/categories/{objectIdentifier} HTTP/1.1
Host: api.example.uk.jylo.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated