Update project

Update an existing project in your account.


PATCH/api/projects/{project}

Update a project

This endpoint allows you to update an existing project's details. You can modify the title and manage attached servers and sites.

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 this 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 this one.

Request

PATCH
/api/projects/{project}
curl -X PATCH "https://ploi.io/api/projects/{project}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  --data '{"title":"My New Awesome Project"}'

Response

{
  "data": {
    "id": 1,
    "title": "My New Awesome Project",
    "servers": [],
    "sites": [],
    "created_at": "2022-07-29 07:44:23"
  }
}