image

4 of 4 in this chapter 1 min read

Create image

 
const inputBody = '{
  "image": null,
  "variant": "de",
  "trim": "true",
  "parent": 123,
  "size": "lpr"
}';
const headers = {
  'Content-Type':'multipart/form-data',
  'Accept':'application/json'
};
 
fetch('https://{instance}.paligoapp.com/api/v2/images/',
{
  method: 'POST',
  body: inputBody,
  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});
Body parameter
 
image: null
variant: de
trim: "true"
parent: 123
size: lpr
Responses

Status

Meaning

Description

Schema

201

Created

Successful response.

Image