---
updatedAt: 2026-07-17T18:00:07.000Z
---

Fetch the complete documentation index at: https://developers.pismo.io/pismo-docs/llms.txt. Use this file to discover all available pages before exploring further.

# Attach simulation config to program

Attach a simulation configuration to a program.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Platform setup - Rates and fees",
    "description": "Rates and fees API endpoint documentation.",
    "contact": {
      "name": "API Support",
      "url": "https://developers.pismo.io/support/"
    },
    "license": {
      "name": "Copyright Pismo"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sandbox.pismolabs.io/rates",
      "description": "Sandbox API server for testing"
    }
  ],
  "tags": [
    {
      "name": "Simulation",
      "description": "Simulation endpoints"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "parameters": {
      "ProgramIDpath": {
        "in": "path",
        "name": "program_id",
        "description": "Pismo program ID",
        "required": true,
        "schema": {
          "type": "integer"
        }
      },
      "SimulationConfigIDpath": {
        "in": "path",
        "name": "simulation_config_id",
        "description": "Simulation configuration ID",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "BadRequestError": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code ID",
            "example": "RCAPI-INVALID-REQUEST-PAYLOAD"
          },
          "message": {
            "type": "string",
            "description": "Error description",
            "example": "The request payload is invalid"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "example": "RCAPI-DOMAIN-VIOLATION",
            "description": "Error code ID."
          },
          "message": {
            "type": "string",
            "example": "Internal server error",
            "description": "Error description."
          }
        }
      },
      "NotFoundSimulationConfigError": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "description": "Error code ID",
            "example": "RCAPI-NOT_FOUND-VIOLATION"
          },
          "message": {
            "type": "string",
            "description": "Error description.",
            "example": "Simulation configuration with the provided key does not exist"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "responses": {
      "400BadRequestError": {
        "description": "Bad request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BadRequestError"
            }
          }
        }
      },
      "401Unauthorized": {
        "description": "InvalidToken",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "404SimulationConfigNotFound": {
        "description": "Simulation configuration not found",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/NotFoundSimulationConfigError"
            }
          }
        }
      },
      "500InternalServerError": {
        "description": "Internal Server Error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/v1/simulation/configs/{simulation_config_id}/attachment/program/{program_id}": {
      "put": {
        "summary": "Attach simulation config to program",
        "description": "Attach a simulation configuration to a program.",
        "operationId": "attachProgramSimulationConfig",
        "tags": [
          "Simulation"
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/SimulationConfigIDpath"
          },
          {
            "$ref": "#/components/parameters/ProgramIDpath"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/400BadRequestError"
          },
          "401": {
            "$ref": "#/components/responses/401Unauthorized"
          },
          "404": {
            "$ref": "#/components/responses/404SimulationConfigNotFound"
          },
          "500": {
            "$ref": "#/components/responses/500InternalServerError"
          }
        }
      }
    }
  }
}
```