Policies

Update Condition Set

Changed on

Update a condition set by condition set ID.

patch/v1/condition_sets/{condition_set_id}

Request

  • Base URL
    https://api.privy.io
  • URL
    https://api.privy.io/v1/condition_sets/{condition_set_id}
  • Auth
    HTTP basic

Path parameters

condition_set_idstring required

Headers

privy-app-idstring required

ID of your Privy app.

privy-authorization-signaturestring

Request authorization signature. If multiple signatures are required, they should be comma separated.

privy-request-expirystring

Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.

Request body

namestring

Name to assign to condition set.

owner_idstring cuid2 nullable

New key quorum ID to set as the owner of the condition set. Cannot be used together with owner. Set to null to clear the existing owner.

Response

Updated condition set object.

idstring required

Unique ID of the created condition set. This will be the primary identifier when using the condition set in the future.

namestring required

Name of the condition set.

owner_idstring cuid2 required

A unique identifier for a key quorum.

created_atnumber required

Unix timestamp of when the condition set was created in milliseconds.

Example response

{
  "id": "qvah5m2hmp9abqlxdmfiht95",
  "name": "Approved Recipients",
  "owner_id": "asgkan0r7gi0wdbvf9cw8qio",
  "created_at": 1761271537642
}

Changes

    • info

      removed subschema #2 from the response property allOf list for the response status

    • info

      added subschema #2 to the response property anyOf list for the response status

    • breaking

      added subschema #2 to the request property allOf list

    • breaking

      added subschema #2 to the request property allOf list

    • breaking

      removed subschema #3 subschema #4 from the request property anyOf list

    • breaking

      the request property became not nullable

    • breaking

      the request property type changed from string null to no type, and format from cuid2 to no format