Example request
PATCH https://api.jupiter-erp.com/api/account/warehouses/example-id
Code
curl -X PATCH 'https://api.jupiter-erp.com/api/account/warehouses/example-id' \
-H 'Authorization: Bearer YOUR_API_TOKEN' \
-H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"location_id": 0,
"name": "string",
"code": "string",
"description": "string",
"address_line_1": "string",
"address_line_2": "string"
}'Parameters
| Name | In | Required | Description |
|---|---|---|---|
| id | path | yes | — |
Request body
Optional
| Field | Type | Description |
|---|---|---|
| active | boolean | — |
| address_line_1 | string | — |
| address_line_2 | string | — |
| city | string | — |
| code | string | — |
| country_code | string | — |
| description | string | — |
| string (email) | — | |
| internal_note | string | — |
| location_id | integer | — |
| name | string | — |
| phone | string | — |
| state | string | — |
| zip | string | — |
Example request
{
"location_id": 0,
"name": "string",
"code": "string",
"description": "string",
"address_line_1": "string",
"address_line_2": "string"
}Responses
200OK
ModelWarehouse
| Field | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| active* | boolean | — | |||||||||
| address_line_1 | string | First line of the address (Street and House number) | |||||||||
| address_line_2 | string | Second line of the address | |||||||||
| city | string | City of the address. | |||||||||
| code | string | — | |||||||||
| country_code | string | ISO country code of the address. | |||||||||
| created_at | string (date-time) | Creation timestamp in ISO 8601 format. | |||||||||
| description | string | HTML | |||||||||
| string (email) | — | ||||||||||
| id* | integer | — | |||||||||
| internal_note | string | HTML | |||||||||
| location | object |
| |||||||||
| location_id | integer | — | |||||||||
| name* | string | — | |||||||||
| phone | string | Phone number in E.164 format. | |||||||||
| state | string | State or region of the address. | |||||||||
| updated_at | string (date-time) | Last update timestamp in ISO 8601 format. | |||||||||
| zip | string | ZIP or postal code. |
Example response
{
"id": 0,
"location_id": 0,
"location": {
"id": 0,
"name": "string"
},
"name": "string",
"code": "string",
"description": "string",
"active": true
}Warehouses