GET /api/pro/work/:id/draft
The draft so far, one markdown per profession, and the headings each part must carry.
Surface: professional. Who may call: professional. Key: professional.work.draft.get.
Example request
curl -X GET https://caremcp.com/api/pro/work/7d1f0a0e-2c4b-4c7e-9a6e-000000000001/draft \
-H "Authorization: Bearer <session or access token>"
Example input
{
"id": "7d1f0a0e-2c4b-4c7e-9a6e-000000000001"
}
Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"id"
]
}
Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"parts": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"properties": {
"markdown": {
"type": "string"
}
},
"required": [
"markdown"
],
"additionalProperties": false
}
},
"templates": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "object",
"properties": {
"standard": {
"type": "string"
},
"sections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"heading": {
"type": "string"
},
"required": {
"type": "boolean"
},
"hint": {
"type": "string"
}
},
"required": [
"heading",
"required",
"hint"
],
"additionalProperties": false
}
}
},
"required": [
"standard",
"sections"
],
"additionalProperties": false
}
}
},
"required": [
"parts",
"templates"
],
"additionalProperties": false
}