Skip to content
Navigation

Remove a file from a template’s bundle

Takes a file out of this template's bundle. The file itself stays in your template library — this only unlinks it.

Removing the file that main names would leave the template unrenderable, so that answers 422 unless the same call names the new entry point with ?main=.

Learn more: Compose

DELETE
https://api.cloudraker.com/v1/compose/configs/{idOrSlug}/files/{fileId}
Try it
Path parameters
Query parameters
Live API request

This request can change data or incur charges for the selected organization.

Authorization

  • bearerAuth
    HTTP
    required

Path parameters

  • idOrSlug
    string
    required
    minLength: 1
  • fileId
    string
    required
    minLength: 1

Query parameters

  • main
    optional
    string
    minLength: 1

Returns

200

The updated template config.

JSON
  • object
    string
    required
  • id
    string
    required
  • slug
    string
    required
  • name
    string
    required
  • capability
    string
    required
  • config
    object
    required
    • schema
      optional
      map of
      unknown
    • main
      optional
      string

      The bundle file the render starts from. It must be a typst source — a name ending in .typ.

      minLength: 1
    • files
      optional
      array of
      string
      minLength: 1
    • examples
      optional
      array of
      object
      • name
        string
        required
        maxLength: 100 · minLength: 1
      • data
        map of
        unknown
        required
  • updatedAt
    optional
    string

400

Validation Error
JSON
  • success
    false
    required
  • error
    array of
    unknown
    required
  • data
    unknown
    required

404

Unknown template, or a file outside this template’s bundle.

422

The file is the template’s main (main_not_in_files), or the new main is not a .typ source (main_not_typst).

429

Rate limited. The /v1 API allows at least 67 requests per minute per organization (about 1,000 requests per 15 minutes) — a guaranteed floor, enforced per edge location, so a geographically spread caller may get more. Wait for the Retry-After interval and retry — the error is retryable.
JSON
  • code
    rate_limited
    required
  • message
    string
    required
  • retryable
    true
    required
  • requestId
    string
    required
  • docUrl
    optional
    string

Type to search…

↑↓ navigate↵ selectEsc close