Projects
Manage projects
Return the list of the projects of the account
The ID of the account
Index of the page
0
Number of items per page
10
Success
Not Found
GET /v1/accounts/{account_id}/projects HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
{
"current_item_count": 1,
"current_page": 0,
"total_count": 1,
"items_per_page": 10,
"last_page": 1,
"items": [
{
"id": "text",
"name": "text"
}
]
}
Create a project
The ID of the account
ID of the project
Name of the project
Created
Validation errors
POST /v1/accounts/{account_id}/projects HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}
{
"id": "text",
"name": "text"
}
Return one project by its id
The ID of the account
The ID of the project
Success
Not Found
GET /v1/accounts/{account_id}/projects/{project_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text",
"name": "text"
}
Delete a project by its id.
The ID of the account
The ID of the project
Deleted
No content
Not Found
DELETE /v1/accounts/{account_id}/projects/{project_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
No content
Update project informations - You can set only the properies you want to update in the request body.
The ID of the account
The ID of the project
ID of the project
Name of the project
Updated
Validation errors
PATCH /v1/accounts/{account_id}/projects/{project_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}
{
"id": "text",
"name": "text"
}
Switch the state of the project to active/inactive.
The ID of the account
The ID of the project
State of the toggler
Updated
No content
Not Found
PATCH /v1/accounts/{account_id}/projects/{project_id}/toggle HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"state": "draft"
}
No content
Was this helpful?