Create a durable Source

POST
/v1/scopes/{scope_id}/sources

Persist one Source without synchronously deriving Artifacts. The Server generates source_id.

Authorization

BearerAuth
AuthorizationBearer <token>

Bearer credential resolved to an opaque authenticated Principal by the Server deployment.

In: header

Path Parameters

scope_id*string
Match.*\S.*
Length1 <= length <= 256

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

application/json

application/json

curl -X POST "https://example.com/v1/scopes/string/sources" \  -H "Content-Type: application/json" \  -d '{    "content": null  }'
{  "receipt_identity": {    "principal": {      "type": "user",      "id": "string",      "description": "string"    },    "receiver_identity_matches": true  },  "scope_id": "string",  "source_type": "content",  "source_id": "string",  "content": null,  "position": 1,  "content_digest": "string"}