cURL
curl --request PATCH \ --url https://api.faces.sh/v1/compile/documents/{doc_id} \ --header 'Content-Type: application/json' \ --data ' { "label": "<string>", "content": "<string>", "perspective": "<string>" } '
{ "document_id": "<string>", "model": "<string>", "label": "<string>", "source": "<string>", "version": 123, "content": "<string>", "token_count": 123, "tokens_used": 123, "tokens_limit": 123, "synced": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Edit a compile document (label, content, or perspective). Auto-versions on content change.
Successful Response
Shared shape for submit, get, edit responses.