Docs home

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
blogIdintegerrequired
Blog ID.
BodyJSONString
is_archiveintegerrequired
1 archives the post, 0 restores it.
Response200application/json
codeinteger
Example: 200
messagestring
"Success"
Example: Success

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.

Updated yesterday

Ask AI