POST
Projects.Archive
Archive or unarchive a project like the dashboard archive icon (Project::archive_project). Sets projects.archive to 1 or 0.
Permissions
- User must be logged in with a valid bearer token.
- Returned or changed records are limited by the user permissions, team access, folder access, and account settings.
Action
- Runs the Projects.Archive function and returns JSON.
Push Service
No push is sent because this function only reads data or returns helper information.
Automation
No automation is run for this function.
Special Instructions
- Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
- Send parameters as POST body fields exactly as documented.
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
project_idpost | int | 900 | Project id. Aliases: id, data_id. |
archivepost | int | 1 | 1 = archive, 0 = unarchive. Alias: data_val (dashboard). |
Optional Parameters
| Name | Type | Sample | What it gives |
|---|---|---|---|
data_valpost | int | 1 | Dashboard alias for archive. |
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/Projects.Archive",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"project_id": "900",
"archive": "1"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/Projects.Archive",
"url_domain": "https:\/\/{domain}\/app\/Projects.Archive"
}Endpoint
POST /app/Projects.Archive
POST https://{user}.bull36.com/app/Projects.Archive
POST https://{domain}/app/Projects.ArchiveSample Output
{
"success": 1,
"id": 900,
"archive": 1,
"message": "Your Project Move To Archive SuccessFully"
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams({ project_id: '900', archive: '1' });
const res = await fetch('/app/Projects.Archive', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());Error Example
{
"success": 0,
"error": "not_found",
"message": "Project not found"
}