Atomically write Source to business and subject scopes

POST
/v1/scopes/{scope_id}/subject-sources

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

application/json

curl -X POST "https://example.com/v1/scopes/string/subject-sources" \  -H "Content-Type: application/json" \  -d '{    "subject_key": "string",    "content": null  }'
{  "subject_key": "string",  "subject_type": "user",  "subject_scope_id": "string",  "sources": [    {      "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"    },    {      "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"    }  ]}