ApiManagementV1WorkspacesWorkspaceidApplicationsAppidEndpoints

Create an endpoint for an application

POST
/management/v1/workspaces/{workspaceId}/applications/{appId}/endpoints
AuthorizationBearer <token>

Management token (nhm_...)

In: header

Path Parameters

appIdstring
urlstring
Formaturi
description?string
authUsername?string
authPassword?string
environmentId?string

Optional. Environment public id (e.g. env_abc123) to scope this endpoint. If omitted, the workspace's default environment is used.

Length1 <= length

Response Body

curl -X POST "https://loading/management/v1/workspaces/{workspaceId}/applications/string/endpoints" \  -H "Content-Type: application/json" \  -d '{    "url": "http://example.com"  }'

{
  "error": {
    "code": "validation_error",
    "message": "Webhook URL must use HTTPS"
  }
}

{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid authorization header"
  }
}

{
  "error": {
    "code": "token_disabled",
    "message": "Management token is disabled"
  }
}

{
  "error": {
    "code": "not_found",
    "message": "Application not found"
  }
}