OrganizationsCompanies
Update a company
PATCH
Fields left out are unchanged; null clears one. Refused with 409 when another company has the same registration number.
Who may call it: An owner, security admin or admin of the organization. API keys: no.
sessioncookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
slug*stringThe organization's slug, as in its URL.
companyId*stringapplication/json- body
name?stringLength
1 <= length <= 200legalName?|nullregistrationNumber?|nulldescription?|nullwebsite?|nulllogo?|nullOK.
application/json- response
company*A company the organization works with.
Example Request
curl -X PATCH 'http://localhost:3000/api/organizations/string/companies/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "company": { "id": "string", "organizationId": "string", "name": "string", "legalName": "string", "registrationNumber": "string", "description": "string", "website": "string", "logo": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "memberIds": [ "string" ] }}