Skip to main content

Create or update an artifact

POST 

https://platform.docana.com/api/v1/artifacts/

When artifact.id matches an existing artifact it is updated (as an unpublished draft when draft is true), honouring an optional If-Match version precondition; otherwise a new artifact is created in the application collection. artifact.kind is a storage-level format (for example json or markdown). Saving a JSON artifact does not create, link, validate, or publish an Agent; use the semantic createAgent operation to create a draft agent and its linked spec artifact.

Request

Responses

The saved artifact (the ETag header carries the version on updates)