Upload and add file attachment to room
curl --request POST \
--url https://api.noux.app/api/v1/room/attachment/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--header 'authorization: <authorization>' \
--form 'roomId=<string>' \
--form 'name=<string>' \
--form file=@example-fileconst form = new FormData();
form.append('roomId', '<string>');
form.append('name', '<string>');
form.append('file', '<string>');
const options = {
method: 'POST',
headers: {authorization: '<authorization>', Authorization: 'Bearer <token>'}
};
options.body = form;
fetch('https://api.noux.app/api/v1/room/attachment/file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noux.app/api/v1/room/attachment/file"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = {
"roomId": "<string>",
"name": "<string>"
}
headers = {
"authorization": "<authorization>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text){
"attachmentId": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}Rooms
Upload and add file attachment to room
Upload a file and add it as an attachment to a room. The file will be uploaded to storage and added to the default materials group. Maximum file size is 2 GB. Use multipart/form-data with fields: roomId, name, and file (binary). Authenticate using Bearer token with your Noux API key. Example: curl -X POST … -H “Authorization: Bearer KEY” -F roomId=ROOM_ID -F name=“My file” -F file=@/path/to/document.pdf — note the @ before the file path, and do not set Content-Type manually (curl adds the boundary).
POST
/
api
/
v1
/
room
/
attachment
/
file
Upload and add file attachment to room
curl --request POST \
--url https://api.noux.app/api/v1/room/attachment/file \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--header 'authorization: <authorization>' \
--form 'roomId=<string>' \
--form 'name=<string>' \
--form file=@example-fileconst form = new FormData();
form.append('roomId', '<string>');
form.append('name', '<string>');
form.append('file', '<string>');
const options = {
method: 'POST',
headers: {authorization: '<authorization>', Authorization: 'Bearer <token>'}
};
options.body = form;
fetch('https://api.noux.app/api/v1/room/attachment/file', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.noux.app/api/v1/room/attachment/file"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = {
"roomId": "<string>",
"name": "<string>"
}
headers = {
"authorization": "<authorization>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text){
"attachmentId": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}{
"error": true,
"code": "PARSE_ERROR",
"message": "<string>"
}Authorizations
Noux API key from your integration settings
Headers
Bearer token with Noux API key
Body
multipart/form-data
Response
Attachment added successfully
The created attachment ID