Create project
Create a new project in your account.
POST/api/projects
Create a project
This endpoint allows you to create a new project. You can optionally attach servers and sites to the project during creation.
Required parameters
- Name
title- Type
- string
- Description
The title to recognize the project.
Optional parameters
- Name
servers- Type
- array
- Description
An array of IDs of your servers to attach to this project. If a server is already attached to another project, you cannot attach it to the newly created one.
- Name
sites- Type
- array
- Description
An array of IDs of your sites to attach to this project. If a site is already attached to another project, you cannot attach it to the newly created one.
Request
POST
/api/projectscurl -X POST "https://ploi.io/api/projects" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"title":"My Awesome Project"}'
Response
{
"data": {
"id": 1,
"title": "My Awesome Project",
"servers": [],
"sites": [],
"created_at": "2022-07-29 07:44:23"
}
}