Openapi
Update a legal entity of the specified organization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
legalEntityId*stringuuidorganizationId*stringuuidThe legal entity patch payload.
application/jsonaddress?bic?|length <= 11cocNumber?|length <= 50code?string^[A-Za-z0-9][A-Za-z0-9_.-]{0,31}$defaultCurrency?|^[A-Z]{3}$fiscal?iban?|length <= 34name?string1 <= length <= 200vatNumber?|length <= 50Returns the legal entity.
application/jsonaddress*archivedAt*|date-timebic*string|nullcocNumber*string|nullcode*string1 <= length <= 32createdAt*stringdate-timedefaultCurrency*string|nullfiscal*iban*string|nullid*legalEntityIdSchemauuidisDefault*booleanname*string1 <= length <= 200organizationId*stringuuidupdatedAt*stringdate-timevatNumber*string|nullcurl -X PATCH 'https://app.localhost/api/v1/organizations/123/legal-entities/123' \ -H 'Content-Type: application/json' \ -d '{}'{ "address": { "city": "string", "country": "string", "line1": "string", "postalCode": "string" }, "archivedAt": "2019-08-24T14:15:22Z", "bic": "string", "cocNumber": "string", "code": "string", "createdAt": "2019-08-24T14:15:22Z", "defaultCurrency": "string", "fiscal": { "fiscalYearStartMonth": 1, "taxPeriod": "monthly" }, "iban": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "isDefault": true, "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "updatedAt": "2019-08-24T14:15:22Z", "vatNumber": "string"}