Skip to main content
PATCH
Toggle Generation Public V2
Change whether a generation is publicly visible or private.

Headers

string
required
Bearer token for authentication

Path Parameters

string
required
Unique generation identifier

Body

boolean
required
Set to true to make public, false to make private

Response

string
Generation unique identifier
boolean
Updated public visibility status
string
Confirmation message

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

generation_id
string<uuid>
required

Body

application/x-www-form-urlencoded
is_public
boolean
required

Response

Successful Response