Admiral

Integrations

Rename a connection

POST
/v1/integrations/{integration}/connections/{connection}/rename
  • ALREADY_EXISTS when another connection to the same integration has the new name.
    • ABORTED when etag is set and the connection changed since it was read.

Scope: integration:write

Authorization

bearerAuth
AuthorizationBearer <token>

An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...

In: header

Path Parameters

integration*string

The integration id.

connection*string

The connection id.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

RenameConnectionRequest gives a connection a new name.

Response Body

application/json

curl -X POST "https://example.com/v1/integrations/string/connections/string/rename" \  -H "Content-Type: application/json" \  -d '{    "new_name": "string"  }'
{  "connection": {    "id": "string",    "name": "string",    "resource_name": "string",    "settings": {      "github": {        "installation_id": "string",        "account_login": "string",        "account_type": "ACCOUNT_TYPE_UNSPECIFIED",        "repository_selection": "REPOSITORY_SELECTION_UNSPECIFIED",        "repositories": [          "string"        ],        "url": "string",        "suspended_at": "2023-01-15T01:30:15.01Z"      }    },    "status": "STATUS_UNSPECIFIED",    "status_reason": "string",    "etag": "string",    "created_by": {      "id": "string",      "display_name": "string",      "email": "string"    },    "created_at": "2023-01-15T01:30:15.01Z",    "updated_at": "2023-01-15T01:30:15.01Z"  }}