Projects

Manage projects

Get projects of the account

get

Return the list of the projects of the account

Authorizations
Path parameters
account_idstringRequired

The ID of the account

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
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

post

Create a project

Authorizations
Path parameters
account_idstringRequired

The ID of the account

Body
idstringRead-onlyOptional

ID of the project

namestringRequired

Name of the project

Responses
201

Created

application/json
post
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"
}

Get one project

get

Return one project by its id

Authorizations
Path parameters
account_idstringRequired

The ID of the account

project_idstringRequired

The ID of the project

Responses
200

Success

application/json
get
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

delete

Delete a project by its id.

Authorizations
Path parameters
account_idstringRequired

The ID of the account

project_idstringRequired

The ID of the project

Responses
204

Deleted

No content

delete
DELETE /v1/accounts/{account_id}/projects/{project_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*

No content

Update a project

patch

Update project informations - You can set only the properies you want to update in the request body.

Authorizations
Path parameters
account_idstringRequired

The ID of the account

project_idstringRequired

The ID of the project

Body
idstringRead-onlyOptional

ID of the project

namestringRequired

Name of the project

Responses
200

Updated

application/json
patch
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"
}

Toggle a project state

patch

Switch the state of the project to active/inactive.

Authorizations
Path parameters
account_idstringRequired

The ID of the account

project_idstringRequired

The ID of the project

Body
statestring · enumRequired

State of the toggler

Possible values:
Responses
200

Updated

No content

patch
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?