Projects API


get
/ v1 / projects
curl --request GET \
     --url https://api.flexstack.com/v1/projects \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Query Parameters

after
string
limit
integer (int64)
sort_by
enum

Responses

200
OK response.
data
array (object)
required
Show attributes
connection_status
enum
required
created_at
string (date-time)
required
default_environment_id
string
required
description
string
icon
string
id
string
required
name
string
required
org_id
string
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
post
/ v1 / projects
curl --request POST \
     --url https://api.flexstack.com/v1/projects \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Request Body

description
string
icon
string (regexp)
name
string
required

Responses

201
Created response.
connection_status
enum
required
created_at
string (date-time)
required
default_environment_id
string
required
description
string
icon
string
id
string
required
name
string
required
org_id
string
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / projects / :id
curl --request GET \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Responses

200
OK response.
connection_status
enum
required
created_at
string (date-time)
required
default_environment_id
string
required
description
string
icon
string
id
string
required
name
string
required
org_id
string
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
put
/ v1 / projects / :id
curl --request PUT \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

id
string
required

Request Body

Important note

PUT requests are used to replace an existing resource. The request body should contain the full representation of the resource, including any fields that are not being updated.

default_environment_id
string
required
description
string
icon
string (regexp)
name
string
required

Responses

200
OK response.
connection_status
enum
required
created_at
string (date-time)
required
default_environment_id
string
required
description
string
icon
string
id
string
required
name
string
required
org_id
string
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
delete
/ v1 / projects / :id
curl --request DELETE \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Responses

204
No content
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / projects / :id / members
curl --request GET \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/members \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Query Parameters

role
array (string)
after
string
limit
integer (int64)
sort_by
enum

Responses

200
OK response.
data
array (object)
required
Show attributes
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
project_id
string
required
role
enum
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
post
/ v1 / projects / :id / members
curl --request POST \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/members \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

id
string
required

Request Body

account_ids
array (string)
required

Responses

201
Created response.
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
project_id
string
required
role
enum
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / orgs / :org_id / projects
curl --request GET \
     --url https://api.flexstack.com/v1/orgs/1C8xJnvSBaztoHyxcim7C4/projects \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

org_id
string
required

Query Parameters

after
string
limit
integer (int64)
sort_by
enum

Responses

200
OK response.
data
array (object)
required
Show attributes
connection_status
enum
required
created_at
string (date-time)
required
default_environment_id
string
required
description
string
icon
string
id
string
required
name
string
required
org_id
string
required
has_more
boolean
required
next_page
string
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
patch
/ v1 / projects / :id / disconnect
curl --request PATCH \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/disconnect \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

id
string
required

Responses

204
No content
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / projects / :project_id / members / :id
curl --request GET \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/members/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

project_id
string
required
id
string
required

Responses

200
OK response.
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
project_id
string
required
role
enum
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
put
/ v1 / projects / :project_id / members / :id
curl --request PUT \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/members/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

project_id
string
required
id
string
required

Request Body

Important note

PUT requests are used to replace an existing resource. The request body should contain the full representation of the resource, including any fields that are not being updated.

role
enum

Responses

200
OK response.
account_id
string
required
avatar
string
created_at
string (date-time)
required
display_name
string
required
id
string
required
name
string
required
org_role
enum
profile
object
required
Show attributes
bio
string
github_handle
string
location
string
twitter_handle
string
website
string
project_id
string
required
role
enum
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
delete
/ v1 / projects / :project_id / members / :id
curl --request DELETE \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/members/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

project_id
string
required
id
string
required

Responses

204
No content
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / projects / :project_id / notification-integrations
curl --request GET \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/notification-integrations \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

project_id
string
required

Responses

200
OK response.
config
unknown
required
created_at
string (date-time)
required
id
string
required
preferences
object
required
Show attributes
deployments.failed
boolean
required
deployments.in_progress
boolean
required
deployments.succeeded
boolean
required
marketing.changelog
boolean
required
marketing.promotions
boolean
required
services.in_alarm
boolean
required
services.ok
boolean
required
project_id
string
required
type
enum
required
updated_at
string (date-time)
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
post
/ v1 / projects / :project_id / notification-integrations
curl --request POST \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/notification-integrations \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

project_id
string
required

Request Body

config
object
required
Show attributes
object
preferences
object
Show attributes
deployments.failed
boolean
required
deployments.in_progress
boolean
required
deployments.succeeded
boolean
required
marketing.changelog
boolean
required
marketing.promotions
boolean
required
services.in_alarm
boolean
required
services.ok
boolean
required
type
enum
required

Responses

201
Created response.
config
unknown
required
created_at
string (date-time)
required
id
string
required
preferences
object
required
Show attributes
deployments.failed
boolean
required
deployments.in_progress
boolean
required
deployments.succeeded
boolean
required
marketing.changelog
boolean
required
marketing.promotions
boolean
required
services.in_alarm
boolean
required
services.ok
boolean
required
project_id
string
required
type
enum
required
updated_at
string (date-time)
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
get
/ v1 / projects / :project_id / notification-integrations / :id
curl --request GET \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/notification-integrations/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

project_id
string
required
id
string
required

Responses

200
OK response.
config
unknown
required
created_at
string (date-time)
required
id
string
required
preferences
object
required
Show attributes
deployments.failed
boolean
required
deployments.in_progress
boolean
required
deployments.succeeded
boolean
required
marketing.changelog
boolean
required
marketing.promotions
boolean
required
services.in_alarm
boolean
required
services.ok
boolean
required
project_id
string
required
type
enum
required
updated_at
string (date-time)
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
patch
/ v1 / projects / :project_id / notification-integrations / :id
curl --request PATCH \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/notification-integrations/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl' \
     --header 'content-type: application/json'

Path Parameters

project_id
string
required
id
string
required

Request Body

preferences
object
required
Show attributes
deployments.failed
boolean
required
deployments.in_progress
boolean
required
deployments.succeeded
boolean
required
marketing.changelog
boolean
required
marketing.promotions
boolean
required
services.in_alarm
boolean
required
services.ok
boolean
required

Responses

200
OK response.
config
unknown
required
created_at
string (date-time)
required
id
string
required
preferences
object
required
Show attributes
deployments.failed
boolean
required
deployments.in_progress
boolean
required
deployments.succeeded
boolean
required
marketing.changelog
boolean
required
marketing.promotions
boolean
required
services.in_alarm
boolean
required
services.ok
boolean
required
project_id
string
required
type
enum
required
updated_at
string (date-time)
required
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
delete
/ v1 / projects / :project_id / notification-integrations / :id
curl --request DELETE \
     --url https://api.flexstack.com/v1/projects/1C8xJnvSBaztoHyxcim7C4/notification-integrations/1C8xJnvSBaztoHyxcim7C4 \
     --header 'accept: application/json' \
     --header 'x-api-key: flex_018bcaea5d6a7678a1d0c9f70e72cd0el4csZ5Etx8BwFZ8QJ9YEwl'

Path Parameters

project_id
string
required
id
string
required

Responses

204
No content
400
Bad Request response.
cause
unknown
code
enum
required
message
string
required
401
Unauthorized response.
cause
unknown
code
enum
required
message
string
required
403
Forbidden response.
cause
unknown
code
enum
required
message
string
required
404
Not Found response.
cause
unknown
code
enum
required
message
string
required
408
Request Timeout response.
cause
unknown
code
enum
required
message
string
required
409
Conflict response.
cause
unknown
code
enum
required
message
string
required
429
Too Many Requests response.
cause
unknown
code
enum
required
message
string
required
500
Internal Server Error response.
cause
unknown
code
enum
required
message
string
required
501
Not Implemented response.
cause
unknown
code
enum
required
message
string
required
Post to