const url = 'https://app.monitorly.cloud/api/v1/projects/PROJECT_ID';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"escalationPolicyId":"ESCALATION_POLICY_ID","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://app.monitorly.cloud/api/v1/projects/PROJECT_ID \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "escalationPolicyId": "ESCALATION_POLICY_ID", "name": "example" }'Renames the project or gives it another escalation policy (project admin). Incidents already open keep the policy they started with. A token may change only the policy (alerts:write); renaming needs a signed-in session.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The project’s id.
Example
PROJECT_IDRequest Bodyrequired
Section titled “Request Bodyrequired”PATCH /projects/{projectId}: the fields given change.
object
A policy of the workspace.
Example
ESCALATION_POLICY_IDResponses
Section titled “Responses”The project.
object
Broken Telegram chats and broken channels of every other kind.
The escalation policy of the project’s incidents (a check may use another, CheckView.escalationPolicyId).
The caller’s effective role.
Where status pages are served (MONITORLY_STATUS_PUBLIC_URL, https://status.example.com): a page’s
address is <this>/<slug>, known before any page exists; null without the setting. Always sent;
optional in the schema because it was added after the first clients (2026-11-15).
Alert channels that receive the project’s alerts: the active Telegram chats and the confirmed channels of every other kind the project picked that are not broken (added 2026-11-12). 0: the project’s alerts go nowhere.
Telegram chats the project picked that are not broken; 0 shows the “alerts are not delivered” banner.
Example
{ "escalationPolicyId": "ESCALATION_POLICY_ID", "id": "ID", "role": "viewer", "workspaceId": "WORKSPACE_ID"}Bad Request.
request.malformed: the body or a parameter is not of the expected shapeauth.credentials_conflict: the request carries both a session cookie and a token
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unauthorized.
auth.unauthenticated,auth.session_expired: no session, or it endedtoken.invalid: the token is malformed, unknown, revoked or expired, or its creator left the workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Forbidden.
auth.forbidden: your role is too low for thistoken.scope_missing: the token lacks the scope this needs;detailnames itrequest.origin_mismatch,request.header_required: a changing request with a session comes from another site or lacksX-Monitorly-Request: 1
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Not Found.
request.not_found: it does not exist, or you cannot see it
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Payload Too Large.
request.too_large: the body is larger than 256 KiB
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Unprocessable Entity.
field.required,field.too_long,field.invalid: a field breaks a rule;errorspoints at itescalation_policy.unknown:escalationPolicyIdis not a policy of this workspace
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Too Many Requests.
token.rate_limited: more than 10 requests a second with this tokensession.rate_limited: more than 5 changes a second from your sessions
object
Field errors, empty for errors of the whole request.
object
object
JSON pointer into the request body.
Stable code, for example check.timeout_exceeds_interval.
Example generated
{ "detail": "example", "errors": [ { "code": "example", "params": { "additionalProperty": "example" }, "pointer": "example" } ], "status": 1, "title": "example", "type": "example"}Headers
Section titled “Headers”Seconds to wait before trying again.