Change Client
PUThttps://core-pl.ocplanet.cloud/backend/api/clients/:client_id
Host: https://core.ocplanet.cloud
Change a specific client identified by ID.
Request
- application/json
Body
address1 stringrequired
address2 string
city stringrequired
company string
country stringrequired
custom_fields arrayrequired
first_name stringrequired
last_name stringrequired
phone stringrequired
state string
vat_id string
zip_code stringrequired
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
address1 stringrequired
address2 stringrequired
city stringrequired
company stringrequired
country stringrequired
country_name stringrequired
custom_fields arrayrequired
fax nullrequired
first_name stringrequired
id integerrequired
last_name stringrequired
phone stringrequired
state stringrequired
vat_id stringrequired
zip_code stringrequired
{
"address1": "string",
"address2": "string",
"city": "string",
"company": "string",
"country": "string",
"country_name": "string",
"custom_fields": [
null
],
"first_name": "string",
"id": 0,
"last_name": "string",
"phone": "string",
"state": "string",
"vat_id": "string",
"zip_code": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Use 'OpenAPIToken {token}' as the value
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X PUT 'https://core-pl.ocplanet.cloud/backend/api/clients/:client_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"address1": "string",
"address2": "string",
"city": "string",
"company": "string",
"country": "string",
"custom_fields": [
null
],
"first_name": "string",
"last_name": "string",
"phone": "string",
"state": "string",
"vat_id": "string",
"zip_code": "string"
}'
ResponseClear