Docs

Type a word or a question. Esc closes the search.

Sign in Start free

Assign resources to a monitor group

Moves resource IDs to a target group or removes their group membership.

POST https://app.upfour.io/v1/monitor-groups/assign
POST https://app.upfour.io/v1/monitor-groups/assign

A real request. Sending it changes data in your up4 account.

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs monitor.write.
Body
More fields2

3 more fields are only available in JSON.

Headers

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope monitor.write stable Idempotency-Key supported returns 200

Body

application/json required 5 fields

All other fields5 fields
heartbeat_group_iduuid · nullable

Same as monitor_group_id.

heartbeat_idsuuid[]

Same as resource_ids on /heartbeat-groups/assign.

monitor_group_iduuid · nullable

Target group; null or empty removes the resources from their group. heartbeat_group_id is accepted instead.

monitor_idsuuid[]

Same as resource_ids on /monitor-groups/assign.

resource_idsuuid[]

The monitors or scheduled jobs to move, at least one. monitor_ids and heartbeat_ids are accepted instead.

Returns

A successful request returns 200 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data ResourceGroupAssignResponse
ResourceGroupAssignResponse · 1 fields
FieldTypeDescription
updated integer

Errors

Only the errors this operation can return. Every error uses the same envelope.

Status Code Meaning
400 bad_request The request is malformed or fails validation.
404 not_found The requested resource does not exist or is outside the caller's scope.
403 permission_denied The credentials do not permit this action.

Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.