Path
POST /api/table/{tableId}/record/{recordId}/{fieldId}/uploadAttachmentRequest
Path Parameters
- tableId (string): The unique identifier of the table (how to get).
- recordId (string): The unique identifier of the record to update (how to get).
- fieldId (string): The ID of the attachment field to upload to (how to get)
Request Body
Type: formData Parameters:- file (optional)
- Description: The record data to update
- Type: Buffer or ReadStream
- fileUrl (optional)
- Description: The URL to upload from
- Type: String
- Example:
https://app.teable.ai/favicon.ico
- Note: Only one of file or fileUrl can be specified at a time. If both are specified, file takes precedence.
Response
Success Response
- Status code: 201 Created
- Response body: Returns the updated record data.
Error Responses
- Status code: 400 Bad Request: Request body format error or missing required fields.
- Status code: 404 Not Found: Specified tableId or recordId does not exist.