Sites

Create Site

POST

Creates a new site with the provided details.

Returns the site.


For more information see the Site Model.

Request

This endpoint expects an object.
id
integerOptional
Unique identifier for the site, managed by Impilo.
name
stringOptional
The name of the site.
active
booleanOptional
True if the site is active, false otherwise.
address
objectOptional
The shipping address for the site.

Response

This endpoint returns an object
id
integerOptional
Unique identifier for the site, managed by Impilo.
name
stringOptional
The name of the site.
active
booleanOptional
True if the site is active, false otherwise.
address
objectOptional
The shipping address for the site.
POST
1curl -X POST https://app.impiloplatform.com/api/v3/site \
2 -H "Impilo-API-Key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "id": 1,
3 "name": "name",
4 "active": true,
5 "address": {
6 "lineOne": "lineOne",
7 "lineTwo": "lineTwo",
8 "lineThree": "lineThree",
9 "city": "city",
10 "state": "state",
11 "zipCode": "zipCode",
12 "country": "country",
13 "note": "note"
14 }
15}