Create list with file upload
PUT
/api/v1/list/form
const url = 'https://example.com/api/v1/list/form';const form = new FormData();
const options = {method: 'PUT'};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/list/form \ --header 'Content-Type: multipart/form-data'Creates a new list with file upload (avatar)
Request Body required
Section titled “Request Body required ” Media type multipart/form-data
object
Responses
Section titled “ Responses ”List
Bad Request
Internal Server Error