コンテンツにスキップ

サービス作成

POST
/api/v1/services

サービス (モニターのグループ) を新規作成します。write スコープが必要です。

作成されるサービスは非公開 (isPublic: 0) です。公開設定の変更は PUT /api/v1/services/{id} を使用してください。 プランのサービス数上限 (free: 1 / pro: 5) を超える場合は 402 を返します。

object
name
required
string
<= 100 characters
Example
Todoke
slug
required

URL スラッグ (小文字英数字とハイフン)

string
>= 2 characters <= 100 characters /^[a-z0-9][a-z0-9-]*[a-z0-9]$/
Example
todoke
description
string
nullable <= 500 characters

作成されたサービス

object
service
object
id
string
teamId
string
name
string
slug
string
description
string
nullable
isPublic
integer
maintenanceUntil

ISO 8601 timestamp until which the service is under maintenance. Null when not in maintenance.

string format: date-time
nullable
autoResolveMaintenance

Whether maintenance auto-resolves (1) or requires manual resolution (0).

integer
Allowed values: 0 1
createdAt
string format: date-time
updatedAt
string format: date-time

サービス数上限に到達 (プランアップグレードが必要)

Write スコープが必要

Slug が既に使用されている