Create a new guidance for a team.
cURL
curl --request POST \ --url https://public.api.serval.com/v2/guidances \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "teamId": "<string>", "name": "<string>", "description": "<string>", "content": "<string>", "shouldAlwaysUse": true } '
{ "data": { "id": "<string>", "teamId": "<string>", "name": "<string>", "description": "<string>", "content": "<string>", "shouldAlwaysUse": true } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the team.
The name of the guidance.
A description of the guidance.
The content of the guidance (optional).
Whether this guidance should always be used (optional, defaults to false).
Success
The created guidance.
Show child attributes
The ID of the guidance.
The ID of the team that the guidance belongs to.
The content of the guidance.
Whether this guidance should always be used (skipping LLM selection).
Was this page helpful?