> ## 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 childrenprepare



## OpenAPI

````yaml /openapi/platform.json post /v1/projects/{projectId}/gas-policies/{gasPolicyId}/children/prepare
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.5.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}/children/prepare:
    post:
      tags:
        - gas-policies
      operationId: prepareChildMandate
      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:
                - agent
                - transfer
                - mandate
              properties:
                parentMandateId:
                  pattern: ^0x[0-9a-fA-F]{64}$
                  type: string
                agent:
                  pattern: ^0x[0-9a-fA-F]{40}$
                  type: string
                transfer:
                  additionalProperties: false
                  type: object
                  required:
                    - recipients
                    - maxPerActionBaseUnits
                    - maxTotalBaseUnits
                  properties:
                    recipients:
                      minItems: 1
                      maxItems: 16
                      type: array
                      items:
                        pattern: ^0x[0-9a-fA-F]{40}$
                        type: string
                    maxPerActionBaseUnits:
                      pattern: ^(0|[1-9][0-9]{0,77})$
                      type: string
                    maxTotalBaseUnits:
                      pattern: ^(0|[1-9][0-9]{0,77})$
                      type: string
                mandate:
                  additionalProperties: false
                  type: object
                  required:
                    - validFrom
                    - expiresAt
                    - approvalExpiresAt
                  properties:
                    validFrom:
                      minimum: 1
                      maximum: 281474976710655
                      type: integer
                    expiresAt:
                      minimum: 1
                      maximum: 281474976710655
                      type: integer
                    approvalExpiresAt:
                      minimum: 1
                      maximum: 281474976710655
                      type: integer
                    salt:
                      pattern: ^0x[0-9a-fA-F]{64}$
                      type: string
                tree:
                  additionalProperties: false
                  type: object
                  required:
                    - maxDepth
                    - maxActiveDescendants
                  properties:
                    maxDepth:
                      minimum: 0
                      maximum: 2
                      type: integer
                    maxActiveDescendants:
                      minimum: 0
                      maximum: 16
                      type: integer
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                required:
                  - draftId
                  - draftExpiresAt
                  - gasPolicyId
                  - rootMandateId
                  - parentMandateId
                  - parentAgent
                  - review
                  - authority
                  - signing
                  - submission
                  - observedBlockNumber
                properties:
                  draftId:
                    format: uuid
                    type: string
                  draftExpiresAt:
                    format: date-time
                    type: string
                  gasPolicyId:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  rootMandateId:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  parentMandateId:
                    pattern: ^0x[0-9a-fA-F]{64}$
                    type: string
                  parentAgent:
                    pattern: ^0x[0-9a-fA-F]{40}$
                    type: string
                  review:
                    additionalProperties: false
                    type: object
                    required:
                      - agent
                      - recipients
                      - maxPerActionBaseUnits
                      - maxTotalBaseUnits
                      - validFrom
                      - expiresAt
                      - depth
                      - maxDepth
                      - maxActiveDescendants
                    properties:
                      agent:
                        pattern: ^0x[0-9a-fA-F]{40}$
                        type: string
                      recipients:
                        type: array
                        items:
                          pattern: ^0x[0-9a-fA-F]{40}$
                          type: string
                      maxPerActionBaseUnits:
                        pattern: ^(0|[1-9][0-9]{0,77})$
                        type: string
                      maxTotalBaseUnits:
                        pattern: ^(0|[1-9][0-9]{0,77})$
                        type: string
                      validFrom:
                        minimum: 0
                        type: integer
                      expiresAt:
                        minimum: 0
                        type: integer
                      depth:
                        minimum: 0
                        type: integer
                      maxDepth:
                        minimum: 0
                        type: integer
                      maxActiveDescendants:
                        minimum: 0
                        type: integer
                  authority:
                    additionalProperties: false
                    type: object
                    required:
                      - mandateTerms
                      - mandatePolicy
                      - mandateId
                    properties:
                      mandateTerms:
                        additionalProperties: false
                        type: object
                        required:
                          - parentId
                          - account
                          - agent
                          - accountProfileId
                          - installEpoch
                          - projectId
                          - mode
                          - policyVersion
                          - policyHash
                          - validFrom
                          - expiresAt
                          - maxDepth
                          - maxActiveDescendants
                          - approvalExpiresAt
                          - salt
                        properties:
                          parentId:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          account:
                            pattern: ^0x[0-9a-fA-F]{40}$
                            type: string
                          agent:
                            pattern: ^0x[0-9a-fA-F]{40}$
                            type: string
                          accountProfileId:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          installEpoch:
                            pattern: ^(0|[1-9][0-9]{0,77})$
                            type: string
                          projectId:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          mode:
                            minimum: 0
                            type: integer
                          policyVersion:
                            minimum: 0
                            type: integer
                          policyHash:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                          validFrom:
                            minimum: 0
                            type: integer
                          expiresAt:
                            minimum: 0
                            type: integer
                          maxDepth:
                            minimum: 0
                            type: integer
                          maxActiveDescendants:
                            minimum: 0
                            type: integer
                          approvalExpiresAt:
                            minimum: 0
                            type: integer
                          salt:
                            pattern: ^0x[0-9a-fA-F]{64}$
                            type: string
                      mandatePolicy:
                        pattern: ^0x([0-9a-f]{2})+$
                        type: string
                      mandateId:
                        pattern: ^0x[0-9a-fA-F]{64}$
                        type: string
                  signing:
                    type: object
                    required:
                      - signer
                      - method
                      - typedData
                      - expectedHash
                    properties:
                      signer:
                        pattern: ^0x[0-9a-fA-F]{40}$
                        type: string
                      method:
                        type: string
                        enum:
                          - eth_signTypedData_v4
                      typedData:
                        additionalProperties: false
                        type: object
                        required:
                          - domain
                          - types
                          - primaryType
                          - message
                        properties:
                          domain:
                            type: object
                            additionalProperties: {}
                          types:
                            type: object
                            additionalProperties:
                              type: array
                              items:
                                type: object
                                required:
                                  - name
                                  - type
                                properties:
                                  name:
                                    type: string
                                  type:
                                    type: string
                          primaryType:
                            type: string
                          message:
                            type: object
                            additionalProperties: {}
                      expectedHash:
                        pattern: ^0x[0-9a-fA-F]{64}$
                        type: string
                  submission:
                    type: object
                    required:
                      - to
                      - functionName
                    properties:
                      to:
                        pattern: ^0x[0-9a-fA-F]{40}$
                        type: string
                      functionName:
                        type: string
                        enum:
                          - createChildMandate
                  observedBlockNumber:
                    pattern: ^(0|[1-9][0-9]{0,77})$
                    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:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````