Link asset to program
Programs
Link asset to program
Link an existing asset to a program.
POST
Link asset to program
Links an existing organization-level asset to a program. This is how you share a single asset across multiple programs. When you create an asset with aDocumentation Index
Fetch the complete documentation index at: https://docs.scrip.dev/llms.txt
Use this file to discover all available pages before exploring further.
program_id, the link happens automatically. This endpoint is for adding an asset to additional programs after initial creation.
Pass the asset’s id in the request body. The link is permanent once any ledger entries exist for that asset in the program. If no ledger entries exist, the asset can be unlinked. Linking an already-linked asset returns an error.
For usage patterns and examples, see the Programs guide.
Authorizations
API key passed in the X-API-Key header.
Path Parameters
Program ID
Body
application/json
Asset to link
ID of the asset to link
Example:
"550e8400-e29b-41d4-a716-446655440000"
Response
Asset linked
When the asset was created
Example:
"2024-01-15T10:30:00Z"
Set when the asset is archived
Asset ID
Example:
"550e8400-e29b-41d4-a716-446655440000"
How balances are tracked
Example:
"SIMPLE"
How value is issued
Example:
"UNLIMITED"
Optional per-transaction ceiling. Null means no limit
Example:
"10000.00"
Asset name
Example:
"Bonus Points"
Programs this asset is linked to
Example:
["550e8400-e29b-41d4-a716-446655440001"]Decimal precision
Example:
2
Lifecycle state
Example:
"ACTIVE"
Short code for this asset
Example:
"PTS"
When the asset was last modified
Example:
"2024-01-15T10:30:00Z"