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

# Post v1projects gas policies safety actionsconfirm



## OpenAPI

````yaml /openapi/platform.json post /v1/projects/{projectId}/gas-policies/{gasPolicyId}/safety-actions/confirm
openapi: 3.1.0
info:
  title: GOL Platform API
  description: >-
    Public API for GOL developer projects, credentials, owner gas policies,
    hosted gas executions, and webhooks.
  version: 0.3.0
servers:
  - url: http://localhost:4100
    description: Local development
security: []
tags:
  - name: system
  - name: authentication
  - name: projects
  - name: api-keys
  - name: audit
  - name: gas-executions
  - name: gas-policies
  - name: webhooks
paths:
  /v1/projects/{projectId}/gas-policies/{gasPolicyId}/safety-actions/confirm:
    post:
      tags:
        - gas-policies
      operationId: confirmGasPolicySafetyAction
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: projectId
          required: true
        - schema:
            pattern: ^0x[0-9a-fA-F]{64}$
            type: string
          in: path
          name: gasPolicyId
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              additionalProperties: false
              type: object
              required:
                - action
                - transactionHash
              properties:
                action:
                  anyOf:
                    - type: string
                      enum:
                        - pause
                    - type: string
                      enum:
                        - resume
                transactionHash:
                  pattern: ^0x[0-9a-fA-F]{64}$
                  type: string
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/def-6'
        '202':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - status
                  - transactionHash
                properties:
                  status:
                    type: string
                    enum:
                      - observing
                  transactionHash:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  draftId:
                    format: uuid
                    type: string
                  gasPolicyId:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '403':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '409':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '429':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                additionalProperties: false
                type: object
                required:
                  - error
                properties:
                  error:
                    additionalProperties: false
                    type: object
                    required:
                      - code
                      - message
                      - correlationId
                    properties:
                      code:
                        type: string
                      message:
                        type: string
                      correlationId:
                        format: uuid
                        type: string
      security:
        - bearerAuth: []
components:
  schemas:
    def-6:
      additionalProperties: false
      type: object
      required:
        - gasPolicyId
        - mandateId
        - account
        - family
        - agent
        - status
        - maxPerActionWei
        - maxTotalWei
        - spentWei
        - remainingWei
        - expiresAt
        - chargeableOutcomesMask
        - recipient
        - attester
        - approvalTransactionHash
        - revocationTransactionHash
        - observedBlockNumber
        - createdAt
        - updatedAt
      properties:
        gasPolicyId:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        mandateId:
          pattern: ^0x[0-9a-fA-F]{64}$
          type: string
        account:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        family:
          anyOf:
            - anyOf:
                - type: string
                  enum:
                    - safe
                - type: string
                  enum:
                    - nexus
                - type: string
                  enum:
                    - kernel
                - type: string
                  enum:
                    - alchemy
            - type: 'null'
        agent:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        status:
          anyOf:
            - type: string
              enum:
                - active
            - type: string
              enum:
                - paused
            - type: string
              enum:
                - revoked
            - type: string
              enum:
                - expired
            - type: string
              enum:
                - unavailable
        maxPerActionWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        maxTotalWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        spentWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        remainingWei:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        expiresAt:
          type: integer
        chargeableOutcomesMask:
          type: integer
        recipient:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        attester:
          pattern: ^0x[0-9a-fA-F]{40}$
          type: string
        approvalTransactionHash:
          anyOf:
            - pattern: ^0x[0-9a-fA-F]{64}$
              type: string
            - type: 'null'
        revocationTransactionHash:
          anyOf:
            - pattern: ^0x[0-9a-fA-F]{64}$
              type: string
            - type: 'null'
        observedBlockNumber:
          pattern: ^(0|[1-9][0-9]{0,77})$
          type: string
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
      title: GasPolicyRecord
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````