v1

OpenAPI 3.1.02026-07-13632897.9 KB
Priority Guardian Priorities

Create Goal

Add a goal to a flexible priority.

Maximum 3 goals per priority. Only valid for flexible priorities.

Args: priority_id: Parent priority ID (UUID string) request: Goal creation request user_id: User ID from validated JWT session: Database session

Returns: 201: Full priorities response with new goal 404: Parent priority not found or wrong user 409: Max goals reached (3) 422: Priority is not flexible type

post/api/priority-guardian/priorities/{priority_id}/goals

Path parameters

priority_idstring required

Headers

X-Internal-Secretstring nullable
X-User-IDstring nullable

Request body

textstring required

Goal text. Max 200 chars.

Response

Successful Response

{"stackTrail":"paths:/api/priority-guardian/priorities/{priority_id}/goals:post:responses:201:content:application/json:schema","oasType":"schema","type":"unknown"}