Policies

Create Condition Set

Changed on

Create a new condition set. You must provide either "owner" or "owner_id" (but not both) to specify ownership.

post/v1/condition_sets

Request

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

Headers

privy-app-idstring required

ID of your Privy app.

Request body

namestring required

Name to assign to condition set.

owner_idstring cuid2 nullable

Key quorum ID to set as the owner of the condition set. Exactly one of owner or owner_id is required; cannot be used together with owner.

Response

Created 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