Update organization

PUT /organizations/{organization_id}

WARNING This endpoint is deprecated and scheduled to be removed in the next major version.

Updates an existing organization. Currently unavailable in self-hosted ECE.

Path parameters

Body Required

The organization to update

Responses

  • Organization updated successfully

    Hide response attributes Show response attributes object
    • Name must be between 2 and 30 characters. (code: organization.invalid_name)
    • User already has an organization. (code: organization.user_organization_already_exists)
    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Values are organization.invalid_name or organization.user_organization_already_exists.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

  • You are not authorized to perform this action

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

  • The current user does not have access to the requested organization. (code: organization.invalid_access)

    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Value is organization.invalid_access.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

  • Organization not found. (code: organization.not_found)

    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Value is organization.not_found.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

PUT /organizations/{organization_id}
curl \
 -X PUT https://{{hostname}}/api/v1/organizations/{organization_id} \
 -d '{"name":"string","default_disk_usage_alerts_enabled":true,"notifications_allowed_email_domains":["string"],"billing_contacts":["string"],"operational_contacts":["string"]}'
Request examples
{
  "name": "string",
  "default_disk_usage_alerts_enabled": true,
  "notifications_allowed_email_domains": [
    "string"
  ],
  "billing_contacts": [
    "string"
  ],
  "operational_contacts": [
    "string"
  ]
}
Response examples (200)
{
  "id": "string",
  "name": "string",
  "default_disk_usage_alerts_enabled": true,
  "notifications_allowed_email_domains": [
    "string"
  ],
  "billing_contacts": [
    "string"
  ],
  "operational_contacts": [
    "string"
  ]
}
Response examples (400)
# Headers
x-cloud-error-codes: organization.invalid_name

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
Response examples (401)
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
Response examples (403)
# Headers
x-cloud-error-codes: organization.invalid_access

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
Response examples (404)
# Headers
x-cloud-error-codes: organization.not_found

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}