Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions sections/projects.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Endpoints:
- [Get a project](#get-a-project)
- [Create a project](#create-a-project)
- [Update a project](#update-a-project)
- [Archive a project](#archive-a-project)
- [Unarchive a project](#unarchive-a-project)
- [Trash a project](#trash-a-project)

Get all projects
Expand Down Expand Up @@ -559,6 +561,36 @@ curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/j
```


Archive a project
------------------

* `PUT /projects/1/status/archived.json` will mark the project with the given ID as archived.

No parameters required. Returns `204 No Content` if successful. On accounts where archiving and trashing projects is limited to admins and the project's creator, everyone else gets a `403 Forbidden`.

###### Copy as cURL

```shell
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -X PUT \
https://3.basecampapi.com/$ACCOUNT_ID/projects/2085958507/status/archived.json
```


Unarchive a project
--------------------

* `PUT /projects/1/status/active.json` will mark the project with the given ID as active, restoring it from either the archive or the trash.

No parameters required. Returns `204 No Content` if successful. If the account has reached its project limit you'll see a `507 Insufficient Storage` and the same response documented under [Create a project](#create-a-project); the project stays where it is until the subscription is upgraded.

###### Copy as cURL

```shell
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" -X PUT \
https://3.basecampapi.com/$ACCOUNT_ID/projects/2085958507/status/active.json
```


Trash a project
----------------

Expand Down
Loading