action dev_unpublish_user { label: "Unpublish a User's Articles and Comments" description: "This endpoint allows the client to unpublish all of the articles and\ncomments created by a user.\n\nThe user associated with the API key must have any 'admin' or 'moderator' role.\n\nThis specified user's articles and comments will be unpublished and will no longer be\nvisible to the public. They will remain in the database and will set back to draft status\non the specified user's dashboard. Any notifications associated with the specified user's\narticles and comments will be deleted.\n\nNote this endpoint unpublishes articles and comments asychronously: it will return a 204 NO CONTENT\nstatus code immediately, but the articles and comments will not be unpublished until the\nrequest is completed on the server." provider: dev method: PUT path: "/api/users/{id}/unpublish" encoding: json input: { type: "object" properties: { id: { type: "integer" format: "int32" } } required: ["id"] additionalProperties: false } output: { type: "object" additionalProperties: true } }