Create or update a company
Changed onCreate or update a company by its external companyId (upsert). Only name, plan, domain, value, sla, tags, address, customData and the account owner (owner or ownerEmail) are accepted; any other field is ignored. tags REPLACES the stored list (an empty array clears it), while address and customData are merged into the existing values rather than replaced. customData accepts up to 100 primitive values, tags up to 50. Setting a non-empty name here marks it authoritative, so names sent by the SDK will no longer overwrite it. owner is the id of a user in this project (ownerEmail their email address); null or "" clears it. An owner that is not a project member's id or email is ignored (the rest of the update still applies), so check owner in the response.
Request
- Base URLhttps://api.gleap.io/v3
- AuthHTTP bearer
Path parameters
Headers
Request body
Example request
{
"name": "Bäckerei Huber GmbH",
"plan": "Kplus Premium",
"domain": "baeckerei-huber.at",
"value": 4800,
"tags": [
"vip"
],
"address": {
"city": "Innsbruck",
"country": "AT"
},
"customData": {
"licenseNumber": "LIZ-10442",
"modules": [
"Kassa",
"DMS"
]
},
"ownerEmail": "support@example.com"
}Response
Ok
Changes
- breaking
removed
subschema #1subschema #2from therequest propertyanyOflist - breaking
removed
subschema #1subschema #2from therequest propertyanyOflist - breaking
the request property
became not nullable - breaking
the request property
became not nullable - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromobjectto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromstringto no type - breaking
the
request property type changed fromarrayto no type - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/ - warning
removed the request property
/
- breaking
- breaking
the request's body type changed from no type to
object - breaking
the response's body type changed from no type to
objectfor status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
removed
subschema #1subschema #2subschema #4from the response bodyallOflist for the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking