Skip to main content
PATCH
Update a company member

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Path Parameters

uuid
string
required

Company identifier

userId
string
required

Company identifier

Body

application/merge-patch+json

The updated Company resource

uuid
string
name
string
Maximum string length: 255
status
string
default:PENDING
description
string | null
contactEmail
string<email> | null
ccEmail1
string<email> | null
ccEmail2
string<email> | null
contactPhone
string | null
contactFullName
string | null
address
string | null
postalCode
string | null
secondaryAddress
string | null
secondaryPostalCode
string | null
vatNumber
string | null
registrationNumber
string | null
contactPhoneCountry
string | null
logo
string | null
website
string | null
town
string<iri-reference> | null
Example:

"/api/v1/towns/1"

country
string<iri-reference> | null
Example:

"/api/v1/countries/1"

mapLatitude
string | null

Directory-map coordinates. Same two-layer strategy as User: this is the precise point picked from Google Places on the company form, and when it is null the map falls back to the centroid of $town. Companies created before the picker existed therefore still get a (city-level) pin.

mapLongitude
string | null
mapPlaceName
string | null
feeTenantProductPrice
string<iri-reference> | null
Example:

"/api/v1/product_prices/1"

showInPublicDirectory
boolean
default:true

Response

Company resource updated

name
string
required
Maximum string length: 255
id
integer
read-only
uuid
string
tenant
string<iri-reference>
Example:

"/api/v1/tenants/1"

status
string
default:PENDING
description
string | null
contactEmail
string<email> | null
ccEmail1
string<email> | null
ccEmail2
string<email> | null
contactPhone
string | null
contactFullName
string | null
address
string | null
postalCode
string | null
secondaryAddress
string | null
secondaryPostalCode
string | null
vatNumber
string | null
registrationNumber
string | null
contactPhoneCountry
string | null
logo
string | null
website
string | null
town
object | null
country
object | null
mapLatitude
string | null

Directory-map coordinates. Same two-layer strategy as User: this is the precise point picked from Google Places on the company form, and when it is null the map falls back to the centroid of $town. Companies created before the picker existed therefore still get a (city-level) pin.

mapLongitude
string | null
mapPlaceName
string | null
validFeeDate
string<date-time> | null
feeTenantProductPrice
object | null
maxSlots
integer
default:0
dateCreated
string<date-time>
dateUpdated
string<date-time>
showInPublicDirectory
boolean
default:true
isFeeActive
boolean
read-only

Check if fee is active (same logic as User.getIsFeeActive())

canRenew
boolean
read-only

Whether the company can renew/pay its membership right now.

usedSlots
integer
read-only

Get count of active company users (used slots).

pendingInvitationsCount
integer
read-only

Get count of pending invitations

availableSlots
integer
read-only

Get available slots (max - used - pending) Returns PHP_INT_MAX when maxSlots is 0 (unlimited)