Create a new service object

POST {{baseUrl}}/api/v2/integration/opsgenie/services

Create a new service object in the Opsgenie integration.

Request Body

{"data"=>{"type"=>"opsgenie-service", "attributes"=>{"name"=>"<string>", "opsgenie_api_key"=>"<string>", "region"=>"us", "custom_url"=>"<string>"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;opsgenie-service&quot;,&quot;attributes&quot;:{&quot;custom_url&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;region&quot;:&quot;eu&quot;}}}