curl \
-X PATCH 'https://api.meilisearch.com/api/v2/organizations/1' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN' \
-H 'Content-Type: application/json' \
--data-binary '{
"name": "Acme"
}'{
"id": 12,
"name": "Acme",
"identifier": "acme",
"ownerId": "3f1c8a2e-5b7d-4e9a-9c1f-2a6b8d4e0f13",
"isAdmin": true
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "You are not allowed to perform this action.",
"code": "forbidden",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#forbidden"
}{
"message": "Organization not found.",
"code": "organization_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#organization_not_found"
}{
"message": "The request contains invalid values.",
"code": "validation_failed",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#validation_failed",
"details": [
{
"field": "name",
"code": "invalid",
"message": "The request contains invalid values."
}
]
}Organizations
Update organization
Renames an organization. Only the organization owner can update it.
PATCH
/
api
/
v2
/
organizations
/
{id}
curl \
-X PATCH 'https://api.meilisearch.com/api/v2/organizations/1' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN' \
-H 'Content-Type: application/json' \
--data-binary '{
"name": "Acme"
}'{
"id": 12,
"name": "Acme",
"identifier": "acme",
"ownerId": "3f1c8a2e-5b7d-4e9a-9c1f-2a6b8d4e0f13",
"isAdmin": true
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "You are not allowed to perform this action.",
"code": "forbidden",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#forbidden"
}{
"message": "Organization not found.",
"code": "organization_not_found",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#organization_not_found"
}{
"message": "The request contains invalid values.",
"code": "validation_failed",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#validation_failed",
"details": [
{
"field": "name",
"code": "invalid",
"message": "The request contains invalid values."
}
]
}Authorizations
personal_access_tokenoauth2
Send Authorization: Bearer <token>, where <token> is a personal access token (PAT) or an OAuth2 access token. A PAT authenticates as the user who owns it. See Authentication.
Response
Organization updated