Skip to content
Navigation

Update a saved fill config

Renames a saved fill config, updates its config, or both. Send at least one field.

A config patch deep-merges over the saved config: objects merge key by key, arrays and scalars replace. Keys you leave out keep their saved values. schema is the exception: it replaces the saved schema whole, so send the whole schema.

Runs that already referenced it keep the configuration they were created with — the config is snapshotted onto each run.

Learn more: Fill capability

PATCH
https://api.cloudraker.com/v1/fill/configs/{idOrSlug}
Try it
Path parameters
Request body
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

Request body JSON required

  • name
    optional
    string
    maxLength: 200 · minLength: 1
  • config
    optional
    object
    • template
      optional
      string
      minLength: 1
    • instructions
      optional
      string
      maxLength: 4000
    • output
      optional
      flattened
      or
      editable
    • fields
      optional
      array of
      object
      • name
        string
        required
        minLength: 1
      • type
        string
        required
        minLength: 1
      • label
        string | null
        required
      • page
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • box
        object
        required
        • x
          number
          required
        • y
          number
          required
        • width
          number
          required
        • height
          number
          required
      • description
        optional
        string
      • required
        optional
        boolean
      • options
        optional
        array of
        string
      • maxLength
        optional
        integer
        maximum: 9007199254740991 · minimum: -9007199254740991
      • multiline
        optional
        boolean
      • section
        optional
        string
      • ignore
        optional
        boolean
    • templateHash
      optional
      string
      pattern: ^[0-9a-f]{64}$

Returns

200

The updated config.

JSON
  • object
    string
    required
  • id
    string
    required
  • slug
    string
    required
  • name
    string
    required
  • capability
    string
    required
  • config
    object
    required
    • template
      optional
      string
      minLength: 1
    • instructions
      optional
      string
      maxLength: 4000
    • output
      optional
      flattened
      or
      editable
    • fields
      optional
      array of
      object
      • name
        string
        required
        minLength: 1
      • type
        string
        required
        minLength: 1
      • label
        string | null
        required
      • page
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • box
        object
        required
        • x
          number
          required
        • y
          number
          required
        • width
          number
          required
        • height
          number
          required
      • description
        optional
        string
      • required
        optional
        boolean
      • options
        optional
        array of
        string
      • maxLength
        optional
        integer
        maximum: 9007199254740991 · minimum: -9007199254740991
      • multiline
        optional
        boolean
      • section
        optional
        string
      • ignore
        optional
        boolean
    • templateHash
      optional
      string
      pattern: ^[0-9a-f]{64}$
  • updatedAt
    optional
    string
  • revision
    optional
    integer

    The number of the saved config. It starts at 1, and each update that changes config adds one. Each run reports the revision it used, in config.revision.

    maximum: 9007199254740991 · minimum: 1

400

Empty body, or a config.schema outside the schema dialect.

404

Unknown id or slug, or a config of another capability.

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