API

AttachmentPart

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
PUT /api/v1/organizations/{organization_id}/agents/{id}/spark/attachments/{attachment_id}/parts/{index} update Part stored

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

updated, err := client.AttachmentPart(nil).Update(map[string]any{"agent_id": "example", "attachment_id": "example", "organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local updated, err = client:AttachmentPart():update({ agent_id = "example", attachment_id = "example", organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$updated = $client->AttachmentPart()->update(["agent_id" => "example", "attachment_id" => "example", "organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

updated = client.AttachmentPart().update({"agent_id": "example", "attachment_id": "example", "organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

updated = client.AttachmentPart.update({ "agent_id" => "example", "attachment_id" => "example", "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const updated = await client.AttachmentPart().update({ agent_id: "example", attachment_id: "example", organization_id: "example" })

Fields

Field Type Required Description
id string No Id

update

PUT /api/v1/organizations/{organization_id}/agents/{id}/spark/attachments/{attachment_id}/parts/{index}

Operation ID: put_api_v1_organizations_organization_id_agents_id_spark_attachments_attachment_id_parts_index_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes
id path string Yes
attachment_id path string Yes
index path string Yes
X-Composal-Requester-Id header string No Fence a retained operation to its original authenticated user; never grants authority.

Request body

application/json

The request body is object.

application/octet-stream

The request body is string (binary).

Responses

204: Part stored
403: Agent messaging access unavailable
404: The upload does not belong to this sender
422: The part has the wrong size or the upload is already complete