Archive a Blog
Archives or unarchives a blog post. Archived posts disappear from the public site and from the default admin listing.
POST
/blog/archive/{blogId}Archive a Blog
curl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/blog/archive/{blogId}' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"is_archive":1}'{
"code": 200,
"message": "Success"
}Access: Institute admins and tutors, plus custom roles that can delete blogs.
Request body: form-data with one field, JSONString, containing this JSON:
Path parameters
Blog ID.
Body
JSONString1 archives the post, 0 restores it.Notes: Only posts in the organization in your ORGID header are changed. A wrong ID still returns "Success" but changes nothing. Rate limit: 30 requests per 1 minute; going over locks you out for 30 minutes.