Skip to main content
POST
/
models
/
{model_name}
/
publicity
Model Publicity
curl --request POST \
  --url https://api.example.com/models/{model_name}/publicity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "public": true
}'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null

Path Parameters

model_name
string
required

Body

application/json
public
boolean
required

whether to make the model public of private

Response

Successful Response