Create Service

POST {{baseUrl}}/services

This endpoint is used to create a service. Requires access_token as a Bearer {{token}} in the Authorization header with service-write scope.

Request Body

{"name"=>"<string>", "description"=>"<string>", "escalation_policy_id"=>"<string>", "email_prefix"=>"<string>", "owner_id"=>"<string>(owner_id represents team_id)", "tags"=>"<Array of Objects> (Optional)", "maintainer"=>"Object (Optional: maintainer represents the service owner which will be a user's object_id)"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;id&quot;:&quot;5e8edb24668e003cb0b18ba1&quot;,&quot;name&quot;:&quot;Payment API Service&quot;,&quot;slug&quot;:&quot;payment-api-service&quot;,&quot;email&quot;:&quot;unique_string@gopherhut.incidents.squadcast.com&quot;,&quot;escalation_policy_id&quot;:&quot;5d81d9407000fb6b9def7e33&quot;,&quot;organization_id&quot;:&quot;5d81d9187000fb6b9def7e32&quot;,&quot;api_key&quot;:&quot;2f81ac8b2362990dd220f8bb4f7cd30ccc3dac43&quot;,&quot;description&quot;:&quot;Payment API Service monitor&quot;,&quot;depends&quot;:null,&quot;escalation_policy&quot;:{&quot;id&quot;:&quot;5d81d9407000fb6b9def7e33&quot;,&quot;name&quot;:&quot;Example Escalation Policy&quot;,&quot;description&quot;:&quot;On-Boarding Example&quot;,&quot;slug&quot;:&quot;example-escalation-policy&quot;}}}