Projects

Update a project's name, budget cap, or enforcement mode

Changed on

Partial update. For monthlyCredits, a number sets the cap, an explicit null clears it, and omitting the field leaves it alone. enforcement controls whether that cap hard-blocks spend (hard) or only tracks it (soft); omitting it leaves it alone.

patch/projects/{projectId}

Request

  • Base URL
    https://origami.chat/api/v2
  • URL
    https://origami.chat/api/v2/projects/{projectId}
  • Auth
    HTTP bearer

Request body

namestring
monthlyCreditsinteger nullable

Number sets the cap, explicit null clears it, omitted leaves it alone.

enforcement'hard' | 'soft'

hard blocks new spend once the monthlyCredits cap is reached; soft tracks spend against the cap without blocking. Omitting the field leaves the current value unchanged.

Response

The updated project.

object'project' required
idstring uuid required
namestring required
monthlyCreditsnumber nullable required

Monthly budget cap in credits, or null when uncapped.

enforcement'hard' | 'soft' nullable required

How the monthlyCredits cap is enforced - hard blocks new spend once the cap is reached, soft only tracks. null when the project is uncapped (nothing to enforce).

createdAtstring date-time required

Changes

    • warning

      the request property's max was set to 100000000.00

    • info

      added the new optional request property

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status