ApiManagementV1WorkspacesWorkspaceidApplicationsId

Update an application

PATCH
/management/v1/workspaces/{workspaceId}/applications/{id}
AuthorizationBearer <token>

Management token (nhm_...)

In: header

Path Parameters

idstring
name?string
metadata?object

Key-value metadata (max 5 keys)

Empty Object

maxEndpoints?integer | null

Set the endpoint cap (0 = none), or null to clear it (unlimited). Omit to leave unchanged.

Range0 <= value
showEventTypes?boolean

Toggle event-catalog visibility in the portal. Omit to leave unchanged.

Response Body

curl -X PATCH "https://loading/management/v1/workspaces/{workspaceId}/applications/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "string",
  "externalId": "string",
  "name": "string",
  "metadata": {
    "property1": "string",
    "property2": "string"
  },
  "maxEndpoints": 0,
  "showEventTypes": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}

{
  "error": {
    "code": "validation_error",
    "message": "metadata exceeds max keys (5)"
  }
}

{
  "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"
  }
}