create_profile
Create OctoBot trading profiles in four ways: duplicate an existing one, import from a file or URL, or use a cloud strategy. Provide the required arguments for your chosen mode to get a new profile ID.
Instructions
Create a new profile, one of 4 ways, discriminated by mode.
Not confirm-gated (ADR-0003): creates new state, never destroys
anything or touches credentials/live trading. Every mode's exact
request shape was verified against OctoBot source
(controllers/configuration.py's profiles_management route) and,
where practical, against the live test instance -- see each
_create_profile_* helper's docstring for the per-mode detail and the
two spec corrections found along the way (import_file never returns
JSON; import_url is presently broken upstream). Only the arguments
relevant to the chosen mode need to be supplied; the rest are
ignored:
mode="duplicate": requiressource_profile_id.mode="import_file": requiresfile_base64(the file's raw bytes, base64-encoded) andfilename.mode="import_url": requiresurl.mode="import_cloud_strategy": requiresstrategy_idandname;descriptionis optional (defaults to"").
Output: {"profile_id": str, "name": str, "message": str}.
Raises ProfileImportFailedError for any failure in any mode
(including a missing required argument for the chosen mode, or an
unrecognized mode) -- OctoBot's own error text is included where one
exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| mode | Yes | ||
| name | No | ||
| filename | No | ||
| description | No | ||
| file_base64 | No | ||
| strategy_id | No | ||
| source_profile_id | No |