Set plan visibility
Toggle a plan between public and private.
Toggle a plan between public and private.
ApiKeyAuth In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
curl -X PUT "https://commet.co/api/v1/plans/string/visibility" \ -H "Content-Type: application/json" \ -d '{ "isPublic": true }'Toggle a plan between public and private.
Plan public ID
{
"success": true,
"data": {
"id": "string",
"isPublic": true
}
}{
"success": false,
"error": {
"type": "validation_error",
"code": "string",
"message": "string",
"doc_url": "string",
"param": "string"
}
}