Change the organisation's settings
curl --request PATCH \ --url https://api.whatsbuilt.fi/v1/organisation \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "default_language": "fi", "gs1_company_prefix": "example", "mcp_enabled": true, "public_api_enabled": true }'The default language, the GS1 company prefix, and whether AI assistants and the REST API are on. Each field sent is set; the rest stay. Turning mcp_enabled off ends every AI assistant connection of the organisation; sending its current value changes nothing.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”The body of updateOrganisation: at least one field.
object
7 to 12 digits; null clears it.
False turns the API off for the organisation, this integration included: the next call answers PUBLIC_API_DISABLED
Responses
Section titled “Responses”The organisation
Organisation: the caller’s organisation and its settings.
object
Example
{ "default_language": "fi"}VALIDATION_ERROR; GS1_PREFIX_INVALID
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_ROLE when the principal is not an admin of its organisation; PUBLIC_API_DISABLED
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Not found in the organisation
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}