Updates the organization.
1 min
PUT
/episerverapi/commerce/customers/organization/{orgId}
Path Parameters
- orgIdstringrequiredDescription
Body Parameters
- bodyOrganizationModelDescription
- primaryKeyIdstring<uuid>DescriptionFormatuuid
- addressesAddressModel[]Description
- addressIdstring<uuid>DescriptionFormatuuid
- modifiedstring<date-time>DescriptionFormatdate-time
- namestringDescription
- firstNamestringDescription
- lastNamestringDescription
- countryNamestringDescription
- countryCodestringDescription
- citystringDescription
- postalCodestringDescription
- line1stringDescription
- line2stringDescription
- regionNamestringDescription
- regionCodestringDescription
- emailstringDescription
- isShippingAddressbooleanDescription
- isBillingAddressbooleanDescription
- daytimePhoneNumberstringDescription
- eveningPhoneNumberstringDescription
- organizationstringDescription
- addressTypeinteger[]Description
- childOrganizationsOrganizationModel[]Description
- Circular-Reference
- contactsContactModel[]Description
- primaryKeyIdstring<uuid>DescriptionFormatuuid
- addressesAddressModel[]Description
- addressIdstring<uuid>DescriptionFormatuuid
- modifiedstring<date-time>DescriptionFormatdate-time
- namestringDescription
- firstNamestringDescription
- lastNamestringDescription
- countryNamestringDescription
- countryCodestringDescription
- citystringDescription
- postalCodestringDescription
- line1stringDescription
- line2stringDescription
- regionNamestringDescription
- regionCodestringDescription
- emailstringDescription
- isShippingAddressbooleanDescription
- isBillingAddressbooleanDescription
- daytimePhoneNumberstringDescription
- eveningPhoneNumberstringDescription
- organizationstringDescription
- addressTypeinteger[]Description
- firstNamestringDescription
- lastNamestringDescription
- emailstringDescription
- registrationSourcestringDescription
- organizationTypestringDescription
- orgCustomerGroupstringDescription
- businessCategorystringDescription
- namestringrequiredDescription
- descriptionstringDescription
- propertiesPropertyItemModel[]Description
- keystringDescription
- valuestringDescription
Responses
200
204
400
401
404
curl
curl --request PUT \
--url /episerverapi/commerce/customers/organization/{orgId} \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"name": ""
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"name": ""
});
var requestOptions = {
method: 'PUT',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("/episerverapi/commerce/customers/organization/{orgId}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/episerverapi/commerce/customers/organization/{orgId}")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Put.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"name": ""
})
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/episerverapi/commerce/customers/organization/{orgId}"
payload = json.dumps({
"name": ""
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PUT", url, headers=headers, data=payload)
print(response.text)
200
// Success
204
// The organization is saved.
400
// If the organization model is not valid.
401
// If user does not have enough permission for this request.
404
// If organization does not exist.