Audiences

Adds one or more members to the specified audience.

post/v1/audiences/{key}/members

Request

  • Base URL: https://api.knock.app
  • URL: https://api.knock.app/v1/audiences/{key}/members
  • Auth: HTTP bearer

Path parameters

keystring required

The key of the audience.

Query parameters

create_audienceboolean

Create the audience if it does not exist.

Request body

Example request

{
  "members": [
    {
      "tenant": "ingen_isla_nublar",
      "user": {
        "email": "ellie@ingen.net",
        "id": "dr_sattler",
        "name": "Dr. Ellie Sattler"
      }
    }
  ]
}

Response

No Content

Changes

    • info

      added the new optional request property ///////////

    • info

      added the new optional request property ///////////

    • info

      added the new optional request property ///////////

    • info

      added the new optional request property ///////////

    • info

      added the new optional request property ///////////

    • info

      added the new optional request property ///////////

    • breaking

      the request property /////// became not nullable

    • breaking

      the /////// request property type changed from boolean to no type

    • info

      added subschema #1 subschema #3 to the /////// request property anyOf list