create_shortlink
Validate C++ source with up to six compiler configurations and generate a permanent shareable shortlink for public retrieval on Compiler Explorer.
Instructions
Validate and permanently store one C++ source with one to six resolved compiler configurations, returning a shareable Compiler Explorer shortlink. Shortlink creation transmits source and settings for persistent, publicly retrievable storage by the configured Compiler Explorer backend; there is no delete operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| compilers | No | ||
| validate_compilation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| warnings | No | ||
| compilers | Yes | ||
| shortlink_id | Yes | ||
| response_truncated | No | ||
| compilation_validated | Yes |