Hướng dẫn AgentFlow

upload_attachment

POST/attachments
AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Header Parameters

Idempotency-Key?string

A key of 1 to 255 printable ASCII characters. Repeating this request with the same key returns the original outcome instead of performing it again. A UUID is recommended.

Length1 <= length <= 255

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Documentation-only shape for the POST /attachments multipart body (the handler parses the multipart stream by hand). A single file part.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/attachments" \  -F file="string"
{  "byte_size": 0,  "content_type": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "original_filename": "string",  "uploaded_at": "2019-08-24T14:15:22Z"}