> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowforma.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set credentials on one request

> Applies the supplied credentials to the single API connection request identified by `requestFfuuid`. This endpoint requires a FlowForma integration access token (not an Azure AD bearer token).



## OpenAPI

````yaml /developers/flowforma-governance-api/openapi.json put /v1/apiConnections/credentials/{requestFfuuid}
openapi: 3.0.3
info:
  title: FlowForma Governance API
  version: 1.0.0
  description: >-
    REST API for FlowForma Governance. Manage app environments, environment
    requests, process promotion requests, security templates, settings, and API
    connection credentials across your FlowForma tenant.
servers:
  - url: https://api.flowforma.com
    description: Production
security:
  - BearerAuth: []
  - IntegrationToken: []
tags:
  - name: Authorization
    description: Obtain an access token.
  - name: Environments
    description: Read FlowForma app environments, their flows and lists.
  - name: Environment Requests
    description: Create and promote requests for new FlowForma app environments.
  - name: Processes
    description: Create and promote process promotion requests between environments.
  - name: Process Actions
    description: Create and update forms in a live FlowForma environment.
  - name: Security Templates
    description: Read and create security templates used by environment requests.
  - name: Settings
    description: Read governance settings.
  - name: API Connections
    description: Set credentials on the subscription's stored API connections.
paths:
  /v1/apiConnections/credentials/{requestFfuuid}:
    put:
      tags:
        - API Connections
      summary: Set credentials on one request
      description: >-
        Applies the supplied credentials to the single API connection request
        identified by `requestFfuuid`. This endpoint requires a FlowForma
        integration access token (not an Azure AD bearer token).
      operationId: SetApiConnectionsRequestCredentials
      parameters:
        - name: requestFfuuid
          in: path
          required: true
          schema:
            type: string
          description: The `ffuuid` of the API connection request.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Credentials'
            example:
              Type: bearerToken
              Token: eyJhbGciOi...
      responses:
        '200':
          description: Successful operation
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - IntegrationToken: []
components:
  schemas:
    Credentials:
      type: object
      description: >-
        Credentials to store against API connection requests. Provide the fields
        that match `Type`: `basic` uses `Username` and `Password`; `apiKey` uses
        `Key`, `Value`, and `Location`; `bearerToken` uses `Token`. Secret
        values are encrypted at rest.
      properties:
        Type:
          type: string
          enum:
            - basic
            - apiKey
            - bearerToken
          description: Credential type.
        Username:
          type: string
          description: Used when `Type` is `basic`.
        Password:
          type: string
          description: Used when `Type` is `basic`.
        Key:
          type: string
          description: Used when `Type` is `apiKey`.
        Value:
          type: string
          description: Used when `Type` is `apiKey`.
        Location:
          type: string
          enum:
            - header
            - query
          description: 'Used when `Type` is `apiKey`: where to send the key.'
        Token:
          type: string
          description: Used when `Type` is `bearerToken`.
      required:
        - Type
    Error:
      type: object
      description: Standard error body.
      properties:
        code:
          type: string
          description: HTTP status code as a string.
        message:
          type: string
          description: Human-readable error message.
      required:
        - code
        - message
      example:
        code: '400'
        message: Page does not exist.
  responses:
    BadRequest:
      description: Bad request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Azure AD app-only access token. Obtain it from GET /v1/oauthToken and
        send it as the `Authorization: Bearer {token}` header.
    IntegrationToken:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        FlowForma integration access token, copied from FlowForma Settings. Send
        it as the raw `Authorization` header value, without a `Bearer` prefix.

````