Skip to main content

ProjectInfo API Documentation

GET: Retrieve ProjectInfo

Description

This route is used to retrieve the ProjectInfo for a specific project.

Method

GET

Response

  • Returns a JSON response with the ProjectInfo or an error message.

Status Codes

  • 200 OK: ProjectInfo retrieved successfully.
  • 500 Internal Server Error: Error listing ProjectInfo.

Throws

  • An error if request validation or ProjectInfo retrieval fails.

Example cURL

curl --location 'https://app.ai12z.net/api/projects/{projectId}/settings/projectorginfo' \
--header 'Authorization: Bearer <YOUR_KEY>' \
--data-urlencode 'sort=name' \
--data-urlencode 'page=1' \
--data-urlencode 'limit=10'

PUT: Update a ProjectInfo

Description

This route is used to update an existing ProjectInfo.

Method

PUT

Request Body

Example request body:

{
"id": "ProjectInfo ID"
}

Response

  • Returns the updated ProjectInfo.

Status Codes

  • 200 OK: ProjectInfo updated successfully.
  • 500 Internal Server Error: Error updating the ProjectInfo.

Throws

  • An error if request validation or ProjectInfo update fails.

Example cURL

curl --location --request PUT 'https://app.ai12z.net/api/projects/{projectId}/settings/projectorginfo' \
--header 'Authorization: Bearer <YOUR_KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "ProjectInfo ID"
}'