MMelo Developers
Api reference

Update a warehouse

PUT
/warehouses/{id}

Replaces the editable warehouse details.

Authorization

bearerAuth
AuthorizationBearer <token>

Access token returned by POST /auth/token.

In: header

Path Parameters

id*string

Warehouse UUID.

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/warehouses/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "nameInt": "string",    "status": "ACTIVE",    "address": "string",    "contactPhone": "string",    "contactEmail": "user@example.com",    "locationMetadata": {      "display_name": "string",      "lat": 0,      "lng": 0    }  }'
{  "name": "string",  "nameInt": "string",  "status": "ACTIVE",  "address": "string",  "contactPhone": "string",  "contactEmail": "user@example.com",  "locationMetadata": {    "display_name": "string",    "lat": 0,    "lng": 0,    "house_number": "string",    "road": "string",    "neighbourhood": "string",    "suburb": "string",    "city": "string",    "postcode": "string",    "country": "string",    "country_code": "string"  },  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "merchantId": "c3073b9d-edd0-49f2-a28d-b7ded8ff9a8b",  "location": {    "type": "Point",    "coordinates": [      0,      0    ]  },  "type": "POINT",  "commersantId": "97b065cf-8938-4c6b-b2b8-a091ef3210cc",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}