Try the RankNibbler SEO API

Update an alert team Beta

PATCH /api/v1/alerting/teams/{id}

Change a team's name or its members. Send only what you want to change. PUT does the same thing.

Needs an X-API-Key header whose owner has permission to manage uptime monitors in the app. The call counts once against your daily quota. See Monitoring API: getting started for authentication, rate limits and errors.

Body

FieldTypeDescription
name optionalstringA new name, up to 120 characters.
userIds optionalinteger[]Replaces the workspace members in the team. Leave it out to keep them.
contactIds optionalstring[]Replaces the contacts in the team. Leave it out to keep them.

After the change the team must still have at least one person. Send [] for one list only if the other still has somebody in it.

Request

Response

200 · application/json
  1. {
  2. "team": { "id": "tm_2c7e91a4b6d0f3e85a17", "name": "Support (EMEA)", "userIds": [42],
  3. "users": [{ "id": 42, "name": "Sam Taylor", "email": "[email protected]" }],
  4. "contactIds": ["ct_5b8d1f0a9c2e4d6f7a83"],
  5. "contacts": [{ "id": "ct_5b8d1f0a9c2e4d6f7a83", "name": "Night shift" }], … },
  6. "usage": { "used": 51, "dailyLimit": 100, "tier": "free" }
  7. }

Errors

StatusWhen
400An empty name, an unknown contact id, or a change that would leave the team empty.
401The API key is missing or invalid.
403The key's owner doesn't have permission to change alert contacts, or the key isn't linked to a workspace.
404No team with that id in your workspace.
405The endpoint doesn't accept that method.
429A rate limit or your daily quota was hit. Read Retry-After, in seconds. Writes are also limited to 30 a minute per key.
500, 503Something went wrong, or the API is temporarily unavailable. Try again.

Errors are JSON: { "error": "message" }. See Monitoring API errors.

Related