Update an access
Changes the fields you send and keeps the others. assistants replaces the whole list. Pause it with status: "paused": every call is refused until it is live again. Switching protection to keys needs the Pro plan; back to public, its keys are kept.
PATCH/v1/accesses/{access_id}
Authorizations
Authorizationbearerin headerrequiredPath parameters
access_idstringrequiredBody
application/jsonrequirednamestringlength: 1–120 charsA new name, 1 to 120 characters.
descriptionstringlength: ≤ 2000 charsWhat callers read about the access as a whole. Up to 2,000 characters.
assistantsobject[]items: 1–20 itemsThe new full list of assistants, in order, replacing the old one: [{ id, description? }].
protectionenum<string>one of: public, keysDefault public. keys is on the Pro plan.
statusenum<string>one of: live, pausedlive (default) answers; paused refuses every call until set live again.
modesenum<string>[]The query modes callers may use, at their usual prices. Default ["flash"]; empty turns answers off (passages must then be on).
passagesbooleanDefault false.
daily_creditsinteger | nullCredits the whole access, per UTC day, may spend; null is no ceiling. A call whose price does not fit is refused with rate_limited until the window resets.
monthly_creditsinteger | nullCredits the whole access, per UTC month, may spend; null is no ceiling. A call whose price does not fit is refused with rate_limited until the window resets.
Response
Update an access
dataobjectrequiredrequest_idstringrequiredPossible codes: invalid_request, unknown_field, invalid_parameter, invalid_cursor
errorobjectrequiredrequest_idstringrequiredPossible codes: authentication_required, invalid_api_key, api_key_expired, api_key_revoked, invalid_access_key
errorobjectrequiredrequest_idstringrequiredPossible codes: insufficient_scope, feature_not_available, admin_required, permission_denied
errorobjectrequiredrequest_idstringrequiredPossible codes: resource_not_found
errorobjectrequiredrequest_idstringrequiredPossible codes: request_too_large
errorobjectrequiredrequest_idstringrequiredPossible codes: rate_limited
errorobjectrequiredrequest_idstringrequiredPossible codes: internal_error
errorobjectrequiredrequest_idstringrequired