This endpoint allows you to create a new goal with optional file attachments. The files will be stored in Supabase Storage and their URLs will be saved with the goal.
Header | Type | Required | Description |
---|---|---|---|
x-api-key | string | Yes | Your API key for authentication |
Field | Type | Required | Description |
---|---|---|---|
url | string | Yes | The URL associated with the goal |
files | array<string> | Yes | Array of file URLs or file data to be attached to the goal |
Goal created successfully
The response is of type object
.