Projects

List projects

This endpoint makes an HTTP GET request to retrieve a list of projects based on the provided keyword, with a specified limit and cursor for pagination

Request

  • Method: GET

  • Endpoint: https://api.creatopy.com/v1/projects

  • Query Parameters:

    • keyword (string, optional): The keyword to search for projects.

    • limit (integer, optional): The maximum number of projects to be returned.

    • cursor (string, optional): A cursor for pagination.

    • orderBy (enum, optional): option to order the response results by next fields:

      ID
      NAME
      CREATED_AT
      UPDATED_AT
    • orderDirection (enum, optional): option to order the response by direction:

      ASC
      DESC

Response

Upon a successful execution, the response will have a status code of 200 and a JSON content type. The response body will contain the following structure:

JSON

The totalCount indicates the total number of projects found, while the nodes array contains the project details such as id, name, createdBy, color, description, and brandKit. The pageInfo object specifies if there are more pages available for pagination, along with the endCursor for the next page.

Create Project

This endpoint allows you to create a new project.

Request

  • Method: POST

  • Endpoint: https://api.creatopy.com/v1/projects

  • Body:

    • name (string, required): The name of the project.

    • brandKitId (integer, required): The ID of the brand kit associated with the project.

Response

The response of this request can be documented as a JSON schema:

JSON

Delete Project

This endpoint allows you to delete a project.

Request

  • Method: DELETE

  • Endpoint: https://api.creatopy.com/v1/projects

  • Body:

    • projectId (integer, required): The ID of the project you want to be deleted.

Response

Update projects

This endpoint allows you to update the name and the assigned brandkit for a project.

Request

  • Method: PUT

  • Endpoint: https://api.creatopy.com/v1/projects

  • Body:

    • projectId (integer, required): The project id

    • name (string, optional): The new name of the project.

    • assignedBrandKitId (integer, optional): The id of the assigned brandkit.

    • isBrandKitSelectable (boolean, optional): true if brandkits are selectable from Editor.

Response

The response will be in JSON format with the following structure:

Last updated