curl --request PUT \
--url https://api.example.com/api/idl/:projectId \
--header 'Content-Type: application/json' \
--data '
{
"idl": {},
"cpiMd": "<string>"
}
'{
"400": {},
"401": {},
"404": {},
"500": {},
"versionId": "<string>",
"version": 123,
"programName": "<string>",
"instructionCount": 123,
"warnings": [
{}
]
}Update an IDL by creating a new version
curl --request PUT \
--url https://api.example.com/api/idl/:projectId \
--header 'Content-Type: application/json' \
--data '
{
"idl": {},
"cpiMd": "<string>"
}
'{
"400": {},
"401": {},
"404": {},
"500": {},
"versionId": "<string>",
"version": 123,
"programName": "<string>",
"instructionCount": 123,
"warnings": [
{}
]
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/berkayoztunc/orquestra/llms.txt
Use this file to discover all available pages before exploring further.
idl not provided.Invalid IDL: IDL validation failed. Response includes details field with specific errors.details.curl -X PUT https://api.orquestra.dev/api/idl/abc123def456 \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"idl": {
"version": "0.2.0",
"name": "my_token_program",
"instructions": [
{
"name": "initialize",
"accounts": [
{
"name": "mint",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
}
],
"args": [
{
"name": "decimals",
"type": "u8"
}
]
},
{
"name": "mint_tokens",
"accounts": [
{
"name": "mint",
"isMut": true,
"isSigner": false
},
{
"name": "destination",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
}
],
"args": [
{
"name": "amount",
"type": "u64"
}
]
}
],
"accounts": [],
"types": [],
"errors": [
{
"code": 6000,
"name": "InsufficientFunds",
"msg": "Insufficient funds for operation"
}
],
"events": []
},
"cpiMd": "# Updated CPI Documentation\n\nNew instructions added in v0.2.0..."
}'
{
"versionId": "new789xyz012",
"version": 2,
"programName": "my_token_program",
"instructionCount": 2,
"warnings": []
}
{
"error": "Invalid IDL",
"details": [
"Instruction 'mint_tokens' missing required field 'args'",
"Error code 6000 conflicts with existing error definition"
]
}
{
"error": "Project not found or access denied"
}
updated_at timestamp is updated to reflect the changeidl:{projectId}:{version}) and latest cache key (idl:{projectId}:latest) are updatedversion field in your IDL to track changescpiMd documentation when adding new cross-program invocation patterns