Save Portfolio Draft
Creates or updates the caller's single PORTFOLIO document with a new content snapshot. Uses optimistic concurrency via `revision` once a draft already exists. Session-authenticated only. The response is a trimmed projection of the document, not a full `Document` record.
Internal session cookie for local development.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/api/v1/portfolios/draft" \ -H "Content-Type: application/json" \ -d '{ "subdomain": "string", "snapshot": {} }'{ "success": true, "message": "string", "data": { "id": "string", "slug": "string", "templateId": "signal", "content": {}, "revision": 0, "updatedAt": "2019-08-24T14:15:22Z" }}