Update service account Run in API Explorer

PATCH /v1/service-accounts/{id}

Update a Redpanda Cloud service account.

Path parameters

  • id string Required
application/json

Body Required

  • service_account object
    Hide service_account attributes Show service_account attributes object
    • description string

      The description of the service account.

    • name string

      The unique name of the service account.

  • update_mask string

Responses

  • 200 application/json

    Ok

    Hide response attribute Show response attribute object
    • service_account object
      Hide service_account attributes Show service_account attributes object
      • auth0_client_credentials object
        Hide auth0_client_credentials attributes Show auth0_client_credentials attributes object
        • client_id string

          The client ID of the credentials

        • client_secret string | null

          The client secret

      • created_at string(date-time)
      • description string

        The description of the service_account.

      • id string
      • name string

        The unique name of the service account.

      • updated_at string(date-time)
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • 500 application/json

    Internal Server Error. Reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

PATCH /v1/service-accounts/{id}
curl \
 --request PATCH 'https://api.redpanda.com/v1/service-accounts/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"service_account":{"description":"CI bot account is used for CI workloads.","name":"ci_bot"},"update_mask":"string"}'
Request examples
{
  "service_account": {
    "description": "CI bot account is used for CI workloads.",
    "name": "ci_bot"
  },
  "update_mask": "string"
}
Response examples (200)
{
  "service_account": {
    "auth0_client_credentials": {
      "client_id": "CDFX4567298",
      "client_secret": "dYz_FZqNM6E3_O1lKUwONKNQ4TKf7i"
    },
    "created_at": "2025-05-04T09:42:00Z",
    "description": "CI bot account is used for CI workloads.",
    "id": "string",
    "name": "ci_bot",
    "updated_at": "2025-05-04T09:42:00Z"
  }
}
Response examples (404)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (500)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (default)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}