Beispielanfrage
PATCH https://api.jupiter-erp.com/api/account/locations/example-id
Code
curl -X PATCH 'https://api.jupiter-erp.com/api/account/locations/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 '{
"name": "string",
"code": "string",
"description": "string",
"address_line_1": "string",
"address_line_2": "string",
"zip": "string"
}'Parameter
| Name | In | Pflicht | Beschreibung |
|---|---|---|---|
| id | path | ja | — |
Request Body
Optional
ModellUpdateLocationRequest
| Feld | Typ | Beschreibung |
|---|---|---|
| active | boolean | — |
| address_line_1 | string | — |
| address_line_2 | string | — |
| city | string | — |
| code | string | — |
| country_code | string | — |
| description | string | — |
| string (email) | — | |
| internal_note | string | — |
| name | string | — |
| phone | string | — |
| state | string | — |
| website | string (uri) | — |
| zip | string | — |
Beispiel Request
{
"name": "string",
"code": "string",
"description": "string",
"address_line_1": "string",
"address_line_2": "string",
"zip": "string"
}Antworten
200OK
ModellLocation
| Feld | Typ | Beschreibung |
|---|---|---|
| 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 |
| 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. |
| website | string (https://test.com) | — |
| zip | string | ZIP or postal code. |
Beispiel Response
{
"id": 0,
"name": "string",
"code": "string",
"description": "string",
"address_line_1": "string",
"address_line_2": "string",
"active": true
}Locations