PUT
/
vault-forward
/
configs
/
{config_id}
/
authentications
/
{authentication_id}
curl --request PUT \
  --url https://api.{gr4vy_id}.gr4vy.app/vault-forward/configs/{config_id}/authentications/{authentication_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "display_name": "My Message Level Encryption",
  "fields": [
    {
      "key": "private_key",
      "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
    }
  ]
}'
{
  "type": "vault-forward-config-authentication",
  "id": "faaad066-30b4-4997-a438-242b0752d7e1",
  "created_at": "2012-12-12T10:53:43+00:00",
  "updated_at": "2012-12-12T10:53:43+00:00",
  "kind": "mle",
  "label": "My MLE",
  "display_name": "My MLE",
  "fields": [
    {
      "key": "secret_key",
      "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
    }
  ],
  "creator": {
    "id": "77a76f7e-d2de-4bbc-ada9-d6a0015e6bd5",
    "name": "John L",
    "email_address": "john@example.com"
  }
}

This endpoint requires the vault-forward-authentications.write scope.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

config_id
string
required

The ID of the Vault Forward configuration.

authentication_id
string
required

The ID of the Vault Forward authentication method.

Body

application/json

Request body to update a Vault Forward authentication method.

display_name
string

A custom name for the authentication method. This will be shown in the Admin UI.

Required string length: 1 - 50
fields
object[]

A list of fields, each containing a key-value pair for each field defined by the definition for this authentication method.

A key-value pair that represents a field defined in the definition for this authentication method.

Response

200
application/json
Returns the updated Vault Forward authentication method.

A configured Vault Forward authentication method.

type
string
default:
vault-forward-config-authentication

The type of this resource. It is always vault-forward-config-authentication.

id
string

The ID of this Vault Forward authentication method.

created_at
string

The date and time when this configuration was created.

updated_at
string

The date and time when this configuration was last updated.

kind
enum<string>

The kind of authentication to be used in a Vault Forward request.

Available options:
mle,
mtls,
signature
label
string

A label that describes this authentication method.

display_name
string

The display name for this authentication method given when created.

fields
object[]

A list of fields, each containing a key-value pair for each field configured for this authentication method. Fields marked as secret are not returned.

creator
object | null

The user who created the Vault Forward authentication method.