API Documentation Out-of-date

INFORMATION

Relevant information to this issue:

  • OS: N/A
  • databases: N/A
  • Programming language and version: N/A
  • Link to your project on GitHub/Gitlab: N/A
  • Link to your application -

ISSUE

API Docs out of Date:

  • POST: {{baseUrl}}/environment/:environmentId/clone
  • POST: {{baseUrl}}/project/:projectId/environment

Docs Read:

{
  "name": "string",
  "cluster": "75f2c581-ef2d-4437-9fa8-a27342452fc4",
  "mode": "PRODUCTION"
}

Should be:

{
  "name": "string",
  "cluster": "75f2c581-ef2d-4437-9fa8-a27342452fc4",
  "type": "PRODUCTION"
}

When attempting to follow the docs recieved

{
    "timestamp": "2023-03-24T14:35:24.963Z",
    "status": 400,
    "error": "Bad Request",
    "message": "Preview environments must have the 'PREVIEW' type",
    "path": "/api/project/projectId/environment"
}

HOW TO REPRODUCE
POST: {{baseUrl}}/project/projectId/environment

{
  "name": "something",
  "cluster": "clusterId",
  "mode": "PREVIEW"
}

or
POST: {{baseUrl}}/environment/:environmentId/clone

{
  "name": "something",
  "cluster": "clusterId",
  "mode": "PREVIEW"
}

Let me know if your preferred communication path for any other issues encountered.

Nevermind I took another look and I see PREVIEW is not an option, looks like unsupported behavior.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.