Skip to content

StreamResourcesController_attach

POST
/api/streams/{id}/resources
curl --request POST \
--url https://api.streams-ai.com/api/streams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/resources \
--header 'Content-Type: application/json' \
--data '{ "resourceType": "url", "resourceRef": "example", "relation": "produced", "meta": { "additionalProperty": "example" } }'
id
required
string format: uuid
/^([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)$/
Media typeapplication/json
object
resourceType
required
string
Allowed values: url asset instructions skill
resourceRef
required
string
>= 1 characters <= 255 characters
relation
string
default: attached
Allowed values: produced modified used attached
meta
object
key
additional properties