Skip to content
Navigation

Update a bot profile configuration and version

PATCH
/api/v1/org-agents/{agentId}

Authorization

  • bearerAuth
    optional
    HTTP Bearer (API key)
    Authorization: Bearer <token>
  • cookieAuth
    optional
    API key in cookie

Path parameters

  • agentId
    string
    required

Request body JSON required

  • config
    object
    required
    • name
      string
      required
      maxLength: 120 · minLength: 1
    • instructions
      string
      required
      maxLength: 32000 · minLength: 1
    • emoji
      optional
      string
      maxLength: 16 · minLength: 1
    • mascotPreset
      optional
      hero
      or
      climbing
      or
      riding
      or
      sleeping
      or
      sunglasses
    • look
      optional
      object

      Visor mascot parts. When present, this wins over mascotPreset.

      • shape
        round
        or
        bean
        or
        pointed
        or
        cloud
        or
        hex
        or
        squircle
        +3 more
        required
      • color
        string
        required
        pattern: ^#[0-9A-Fa-f]{6}$
      • eyes
        pill
        or
        big
        or
        happy
        or
        wink
        or
        surprised
        or
        squint
        +4 more
        required
      • acc
        none
        or
        pen
        or
        wrench
        or
        coffee
        or
        loupe
        or
        megaphone
        +4 more
        required
    • model
      optional
      string

      Optional provider-independent conversational model. Coding execution uses codingModel instead.

      maxLength: 200 · minLength: 1
    • harness
      optional
      string
      maxLength: 64 · minLength: 1
    • codingModel
      optional
      string
      maxLength: 200 · minLength: 1
    • connectionId
      optional
      string
      maxLength: 120 · minLength: 1
    • sandboxProvider
      optional
      cloudflare
      or
      docker-local
      or
      computesdk
      or
      e2b
    • defaultRepoUrl
      optional
      string
      maxLength: 500 · minLength: 1
    • expectedDeliverables
      optional
      array of
      string

      Optional approval-frozen output paths, in delivery order. Paths are unique ignoring case, relative and non-hidden. Formats: MD, TXT, JSON, CSV (16 KiB each, 64 KiB combined); HTML (512 KiB) and PDF (10 MiB), with a 10.5 MiB combined budget; XLSX, DOCX, PPTX, PNG, JPG/JPEG, WebP, GIF (5 MiB each) and MP4 (12 MiB), with a 16 MiB combined budget. Binary formats must match their file signature. Collection checks do not assess semantic quality.

      maxLength: 240 · minLength: 1 · pattern: ^(?!.* (?:/|$))(?:[A-Za-z0-9][A-Za-z0-9._ -]*/)*[A-Za-z0-9][A-Za-z0-9._ -]*\.(?:[mM][dD]|[tT][xX][tT]|[jJ][sS][oO][nN]|[cC][sS][vV]|[hH][tT][mM][lL]|[pP][dD][fF]|[xX][lL][sS][xX]|[dD][oO][cC][xX]|[pP][pP][tT][xX]|[pP][nN][gG]|[jJ][pP][eE]?[gG]|[wW][eE][bB][pP]|[gG][iI][fF]|[mM][pP]4)$
    • approvalPolicy
      optional
      standard
      or
      auto_approve

      Legacy auto_approve configuration does not bypass human run approval.

    • toolScopes
      optional
      array of
      string

      Legacy values are readable; create/update reject nonempty scopes until execution enforces them.

      maxLength: 64
  • expectedVersion
    optional
    integer
    minimum: 1

Returns

200

Versioned bot profile

JSON
  • ok
    optional
    boolean
  • agent
    optional
    object
    • id
      string
      required
    • orgId
      string
      required
    • slug
      string
      required
    • version
      integer
      required
      minimum: 1
    • config
      object
      required
      • name
        string
        required
        maxLength: 120 · minLength: 1
      • instructions
        string
        required
        maxLength: 32000 · minLength: 1
      • emoji
        optional
        string
        maxLength: 16 · minLength: 1
      • mascotPreset
        optional
        hero
        or
        climbing
        or
        riding
        or
        sleeping
        or
        sunglasses
      • look
        optional
        object

        Visor mascot parts. When present, this wins over mascotPreset.

        • shape
          round
          or
          bean
          or
          pointed
          or
          cloud
          or
          hex
          or
          squircle
          +3 more
          required
        • color
          string
          required
          pattern: ^#[0-9A-Fa-f]{6}$
        • eyes
          pill
          or
          big
          or
          happy
          or
          wink
          or
          surprised
          or
          squint
          +4 more
          required
        • acc
          none
          or
          pen
          or
          wrench
          or
          coffee
          or
          loupe
          or
          megaphone
          +4 more
          required
      • model
        optional
        string

        Optional provider-independent conversational model. Coding execution uses codingModel instead.

        maxLength: 200 · minLength: 1
      • harness
        optional
        string
        maxLength: 64 · minLength: 1
      • codingModel
        optional
        string
        maxLength: 200 · minLength: 1
      • connectionId
        optional
        string
        maxLength: 120 · minLength: 1
      • sandboxProvider
        optional
        cloudflare
        or
        docker-local
        or
        computesdk
        or
        e2b
      • defaultRepoUrl
        optional
        string
        maxLength: 500 · minLength: 1
      • expectedDeliverables
        optional
        array of
        string

        Optional approval-frozen output paths, in delivery order. Paths are unique ignoring case, relative and non-hidden. Formats: MD, TXT, JSON, CSV (16 KiB each, 64 KiB combined); HTML (512 KiB) and PDF (10 MiB), with a 10.5 MiB combined budget; XLSX, DOCX, PPTX, PNG, JPG/JPEG, WebP, GIF (5 MiB each) and MP4 (12 MiB), with a 16 MiB combined budget. Binary formats must match their file signature. Collection checks do not assess semantic quality.

        maxLength: 240 · minLength: 1 · pattern: ^(?!.* (?:/|$))(?:[A-Za-z0-9][A-Za-z0-9._ -]*/)*[A-Za-z0-9][A-Za-z0-9._ -]*\.(?:[mM][dD]|[tT][xX][tT]|[jJ][sS][oO][nN]|[cC][sS][vV]|[hH][tT][mM][lL]|[pP][dD][fF]|[xX][lL][sS][xX]|[dD][oO][cC][xX]|[pP][pP][tT][xX]|[pP][nN][gG]|[jJ][pP][eE]?[gG]|[wW][eE][bB][pP]|[gG][iI][fF]|[mM][pP]4)$
      • approvalPolicy
        optional
        standard
        or
        auto_approve

        Legacy auto_approve configuration does not bypass human run approval.

      • toolScopes
        optional
        array of
        string

        Legacy values are readable; create/update reject nonempty scopes until execution enforces them.

        maxLength: 64
    • createdAt
      number
      required
    • updatedAt
      number
      required
    • archivedAt
      optional
      number

400

Invalid configuration or unsupported tool scopes

409

Version conflict

Type to search…

↑↓ navigate↵ selectEsc close