Docs
update_source
Change a source's `title` (null clears it), the text of a note (`note`), or the text of a transcript (`transcript`). What was fetched from a URL, and media, can't be edited: they are what was read. Editing a source doesn't change content already written from it.
Change a source's title (null clears it), the text of a note (note), or the text of a transcript (transcript). What was fetched from a URL, and media, can't be edited: they are what was read. Editing a source doesn't change content already written from it.
Access and cost
- Kind: mutation
- Scope: workspace
- Actors: member, agent
- Credits: Free
- Requires confirmation: false
- Accepts idempotency key: false
Input schema
{
"properties": {
"workspaceId": {
"format": "uuid",
"type": "string"
},
"sourceId": {
"format": "uuid",
"type": "string"
},
"title": {
"anyOf": [
{
"maxLength": 300,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
]
},
"note": {
"minLength": 1,
"type": "string"
},
"transcript": {
"minLength": 1,
"type": "string"
}
},
"required": [
"workspaceId",
"sourceId"
],
"type": "object"
}Output schema
{
"additionalProperties": false,
"properties": {
"source": {
"additionalProperties": false,
"properties": {
"id": {
"format": "uuid",
"type": "string"
},
"workspaceId": {
"format": "uuid",
"type": "string"
},
"pieceId": {
"format": "uuid",
"type": "string"
},
"kind": {
"enum": [
"url",
"media",
"note",
"transcript"
],
"type": "string"
},
"title": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"mediaAssetId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"note": {
"type": [
"string",
"null"
]
},
"fetchedText": {
"type": [
"string",
"null"
]
},
"fetchStatus": {
"enum": [
"not_applicable",
"pending",
"fetching",
"fetched",
"failed"
],
"type": "string"
},
"fetchError": {
"type": [
"string",
"null"
]
},
"fetchedAt": {
"anyOf": [
{
"format": "date-time",
"type": "string"
},
{
"type": "null"
}
]
},
"createdByAccountId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"createdByAgentClientId": {
"anyOf": [
{
"format": "uuid",
"type": "string"
},
{
"type": "null"
}
]
},
"createdAt": {
"format": "date-time",
"type": "string"
},
"updatedAt": {
"format": "date-time",
"type": "string"
},
"description": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"workspaceId",
"pieceId",
"kind",
"title",
"url",
"mediaAssetId",
"note",
"fetchedText",
"fetchStatus",
"fetchError",
"fetchedAt",
"createdByAccountId",
"createdByAgentClientId",
"createdAt",
"updatedAt",
"description"
],
"type": "object"
}
},
"required": [
"source"
],
"type": "object"
}Errors
[
"not_editable"
]Annotations
{
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": false,
"title": "Edit a source"
}