unicodeC / Datadog API Collection / Create or update service definition
Back to Collection Items
#include <C_CkHttpW.h>
#include <C_CkJsonObjectW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkStringBuilderW.h>
void ChilkatSample(void)
{
HCkHttpW http;
BOOL success;
HCkJsonObjectW json;
HCkHttpResponseW resp;
HCkStringBuilderW sbResponseBody;
HCkJsonObjectW jResp;
int respStatusCode;
const wchar_t *Github_html_url;
const wchar_t *Ingested_schema_version;
const wchar_t *Ingestion_source;
const wchar_t *Last_modified_time;
const wchar_t *Origin;
const wchar_t *Origin_detail;
const wchar_t *Schema_version;
const wchar_t *Dd_service;
const wchar_t *Description;
const wchar_t *Display_name;
const wchar_t *Service_tier;
const wchar_t *v_Email;
const wchar_t *Slack;
const wchar_t *Pagerduty;
const wchar_t *Application;
const wchar_t *Team;
const wchar_t *id;
const wchar_t *v_type;
int j;
int count_j;
const wchar_t *instance_location;
const wchar_t *keyword_location;
const wchar_t *message;
const wchar_t *name;
const wchar_t *url;
const wchar_t *strVal;
int i;
int count_i;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http = CkHttpW_Create();
// Use this online tool to generate code from sample JSON: Generate Code to Create JSON
// The following JSON is sent in the request body.
// {
// "schema-version": "v2.1",
// "dd-service": "<string>",
// "application": "<string>",
// "contacts": [
// {
// "type": "email",
// "contact": "<email>",
// "name": "<string>"
// },
// {
// "type": "email",
// "contact": "<email>",
// "name": "<string>"
// }
// ],
// "description": "<string>",
// "extensions": {
// "qui_6": {}
// },
// "integrations": {
// "opsgenie": {
// "service-url": "<string>",
// "region": "US"
// },
// "pagerduty": {
// "service-url": "<string>"
// }
// },
// "lifecycle": "<string>",
// "links": [
// {
// "name": "<string>",
// "type": "repo",
// "url": "<string>",
// "provider": "<string>"
// },
// {
// "name": "<string>",
// "type": "runbook",
// "url": "<string>",
// "provider": "<string>"
// }
// ],
// "tags": [
// "<string>",
// "<string>"
// ],
// "team": "<string>",
// "tier": "<string>"
// }
json = CkJsonObjectW_Create();
CkJsonObjectW_UpdateString(json,L"schema-version",L"v2.1");
CkJsonObjectW_UpdateString(json,L"dd-service",L"<string>");
CkJsonObjectW_UpdateString(json,L"application",L"<string>");
CkJsonObjectW_UpdateString(json,L"contacts[0].type",L"email");
CkJsonObjectW_UpdateString(json,L"contacts[0].contact",L"<email>");
CkJsonObjectW_UpdateString(json,L"contacts[0].name",L"<string>");
CkJsonObjectW_UpdateString(json,L"contacts[1].type",L"email");
CkJsonObjectW_UpdateString(json,L"contacts[1].contact",L"<email>");
CkJsonObjectW_UpdateString(json,L"contacts[1].name",L"<string>");
CkJsonObjectW_UpdateString(json,L"description",L"<string>");
CkJsonObjectW_UpdateNewObject(json,L"extensions.qui_6");
CkJsonObjectW_UpdateString(json,L"integrations.opsgenie.service-url",L"<string>");
CkJsonObjectW_UpdateString(json,L"integrations.opsgenie.region",L"US");
CkJsonObjectW_UpdateString(json,L"integrations.pagerduty.service-url",L"<string>");
CkJsonObjectW_UpdateString(json,L"lifecycle",L"<string>");
CkJsonObjectW_UpdateString(json,L"links[0].name",L"<string>");
CkJsonObjectW_UpdateString(json,L"links[0].type",L"repo");
CkJsonObjectW_UpdateString(json,L"links[0].url",L"<string>");
CkJsonObjectW_UpdateString(json,L"links[0].provider",L"<string>");
CkJsonObjectW_UpdateString(json,L"links[1].name",L"<string>");
CkJsonObjectW_UpdateString(json,L"links[1].type",L"runbook");
CkJsonObjectW_UpdateString(json,L"links[1].url",L"<string>");
CkJsonObjectW_UpdateString(json,L"links[1].provider",L"<string>");
CkJsonObjectW_UpdateString(json,L"tags[0]",L"<string>");
CkJsonObjectW_UpdateString(json,L"tags[1]",L"<string>");
CkJsonObjectW_UpdateString(json,L"team",L"<string>");
CkJsonObjectW_UpdateString(json,L"tier",L"<string>");
CkHttpW_SetRequestHeader(http,L"Content-Type",L"application/json");
CkHttpW_SetRequestHeader(http,L"Accept",L"application/json");
resp = CkHttpW_PostJson3(http,L"https://api.app.ddog-gov.com/api/v2/services/definitions",L"application/json",json);
if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
wprintf(L"%s\n",CkHttpW_lastErrorText(http));
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(json);
return;
}
sbResponseBody = CkStringBuilderW_Create();
CkHttpResponseW_GetBodySb(resp,sbResponseBody);
jResp = CkJsonObjectW_Create();
CkJsonObjectW_LoadSb(jResp,sbResponseBody);
CkJsonObjectW_putEmitCompact(jResp,FALSE);
wprintf(L"Response Body:\n");
wprintf(L"%s\n",CkJsonObjectW_emit(jResp));
respStatusCode = CkHttpResponseW_getStatusCode(resp);
wprintf(L"Response Status Code = %d\n",respStatusCode);
if (respStatusCode >= 400) {
wprintf(L"Response Header:\n");
wprintf(L"%s\n",CkHttpResponseW_header(resp));
wprintf(L"Failed.\n");
CkHttpResponseW_Dispose(resp);
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(json);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jResp);
return;
}
CkHttpResponseW_Dispose(resp);
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "data": [
// {
// "attributes": {
// "meta": {
// "github-html-url": "<string>",
// "ingested-schema-version": "<string>",
// "ingestion-source": "<string>",
// "last-modified-time": "<string>",
// "origin": "<string>",
// "origin-detail": "<string>",
// "warnings": [
// {
// "instance-location": "<string>",
// "keyword-location": "<string>",
// "message": "<string>"
// },
// {
// "instance-location": "<string>",
// "keyword-location": "<string>",
// "message": "<string>"
// }
// ]
// },
// "schema": {
// "schema-version": "v1",
// "info": {
// "dd-service": "<string>",
// "description": "<string>",
// "display-name": "<string>",
// "service-tier": "<string>"
// },
// "contact": {
// "email": "<email>",
// "slack": "<string>"
// },
// "extensions": {
// "Excepteur__84": {},
// "sit6cc": {}
// },
// "external-resources": [
// {
// "name": "<string>",
// "type": "wiki",
// "url": "<string>"
// },
// {
// "name": "<string>",
// "type": "dashboard",
// "url": "<string>"
// }
// ],
// "integrations": {
// "pagerduty": "<string>"
// },
// "org": {
// "application": "<string>",
// "team": "<string>"
// },
// "tags": [
// "<string>",
// "<string>"
// ]
// }
// },
// "id": "<string>",
// "type": "<string>"
// },
// {
// "attributes": {
// "meta": {
// "github-html-url": "<string>",
// "ingested-schema-version": "<string>",
// "ingestion-source": "<string>",
// "last-modified-time": "<string>",
// "origin": "<string>",
// "origin-detail": "<string>",
// "warnings": [
// {
// "instance-location": "<string>",
// "keyword-location": "<string>",
// "message": "<string>"
// },
// {
// "instance-location": "<string>",
// "keyword-location": "<string>",
// "message": "<string>"
// }
// ]
// },
// "schema": {
// "schema-version": "v1",
// "info": {
// "dd-service": "<string>",
// "description": "<string>",
// "display-name": "<string>",
// "service-tier": "<string>"
// },
// "contact": {
// "email": "<email>",
// "slack": "<string>"
// },
// "extensions": {
// "laboris_99d": {},
// "ad_7d0": {}
// },
// "external-resources": [
// {
// "name": "<string>",
// "type": "repo",
// "url": "<string>"
// },
// {
// "name": "<string>",
// "type": "url",
// "url": "<string>"
// }
// ],
// "integrations": {
// "pagerduty": "<string>"
// },
// "org": {
// "application": "<string>",
// "team": "<string>"
// },
// "tags": [
// "<string>",
// "<string>"
// ]
// }
// },
// "id": "<string>",
// "type": "<string>"
// }
// ]
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
// Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.
i = 0;
count_i = CkJsonObjectW_SizeOfArray(jResp,L"data");
while (i < count_i) {
CkJsonObjectW_putI(jResp,i);
Github_html_url = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.github-html-url");
Ingested_schema_version = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.ingested-schema-version");
Ingestion_source = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.ingestion-source");
Last_modified_time = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.last-modified-time");
Origin = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.origin");
Origin_detail = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.origin-detail");
Schema_version = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.schema-version");
Dd_service = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.info.dd-service");
Description = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.info.description");
Display_name = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.info.display-name");
Service_tier = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.info.service-tier");
v_Email = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.contact.email");
Slack = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.contact.slack");
Pagerduty = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.integrations.pagerduty");
Application = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.org.application");
Team = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.org.team");
id = CkJsonObjectW_stringOf(jResp,L"data[i].id");
v_type = CkJsonObjectW_stringOf(jResp,L"data[i].type");
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"data[i].attributes.meta.warnings");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
instance_location = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.warnings[j].instance-location");
keyword_location = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.warnings[j].keyword-location");
message = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.meta.warnings[j].message");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"data[i].attributes.schema.external-resources");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
name = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.external-resources[j].name");
v_type = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.external-resources[j].type");
url = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.external-resources[j].url");
j = j + 1;
}
j = 0;
count_j = CkJsonObjectW_SizeOfArray(jResp,L"data[i].attributes.schema.tags");
while (j < count_j) {
CkJsonObjectW_putJ(jResp,j);
strVal = CkJsonObjectW_stringOf(jResp,L"data[i].attributes.schema.tags[j]");
j = j + 1;
}
i = i + 1;
}
CkHttpW_Dispose(http);
CkJsonObjectW_Dispose(json);
CkStringBuilderW_Dispose(sbResponseBody);
CkJsonObjectW_Dispose(jResp);
}
Curl Command
curl -X POST
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"schema-version": "v2.1",
"dd-service": "<string>",
"application": "<string>",
"contacts": [
{
"type": "email",
"contact": "<email>",
"name": "<string>"
},
{
"type": "email",
"contact": "<email>",
"name": "<string>"
}
],
"description": "<string>",
"extensions": {
"qui_6": {}
},
"integrations": {
"opsgenie": {
"service-url": "<string>",
"region": "US"
},
"pagerduty": {
"service-url": "<string>"
}
},
"lifecycle": "<string>",
"links": [
{
"name": "<string>",
"type": "repo",
"url": "<string>",
"provider": "<string>"
},
{
"name": "<string>",
"type": "runbook",
"url": "<string>",
"provider": "<string>"
}
],
"tags": [
"<string>",
"<string>"
],
"team": "<string>",
"tier": "<string>"
}'
https://api.app.ddog-gov.com/api/v2/services/definitions
Postman Collection Item JSON
{
"name": "Create or update service definition",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"schema-version\": \"v2.1\",\n \"dd-service\": \"<string>\",\n \"application\": \"<string>\",\n \"contacts\": [\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n },\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"extensions\": {\n \"qui_6\": {}\n },\n \"integrations\": {\n \"opsgenie\": {\n \"service-url\": \"<string>\",\n \"region\": \"US\"\n },\n \"pagerduty\": {\n \"service-url\": \"<string>\"\n }\n },\n \"lifecycle\": \"<string>\",\n \"links\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"runbook\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"team\": \"<string>\",\n \"tier\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/services/definitions",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"services",
"definitions"
]
},
"description": "Create or update service definition in the Datadog Service Catalog."
},
"response": [
{
"name": "CREATED",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"schema-version\": \"v2.1\",\n \"dd-service\": \"<string>\",\n \"application\": \"<string>\",\n \"contacts\": [\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n },\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"extensions\": {\n \"qui_6\": {}\n },\n \"integrations\": {\n \"opsgenie\": {\n \"service-url\": \"<string>\",\n \"region\": \"US\"\n },\n \"pagerduty\": {\n \"service-url\": \"<string>\"\n }\n },\n \"lifecycle\": \"<string>\",\n \"links\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"runbook\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"team\": \"<string>\",\n \"tier\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/services/definitions",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"services",
"definitions"
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"data\": [\n {\n \"attributes\": {\n \"meta\": {\n \"github-html-url\": \"<string>\",\n \"ingested-schema-version\": \"<string>\",\n \"ingestion-source\": \"<string>\",\n \"last-modified-time\": \"<string>\",\n \"origin\": \"<string>\",\n \"origin-detail\": \"<string>\",\n \"warnings\": [\n {\n \"instance-location\": \"<string>\",\n \"keyword-location\": \"<string>\",\n \"message\": \"<string>\"\n },\n {\n \"instance-location\": \"<string>\",\n \"keyword-location\": \"<string>\",\n \"message\": \"<string>\"\n }\n ]\n },\n \"schema\": {\n \"schema-version\": \"v1\",\n \"info\": {\n \"dd-service\": \"<string>\",\n \"description\": \"<string>\",\n \"display-name\": \"<string>\",\n \"service-tier\": \"<string>\"\n },\n \"contact\": {\n \"email\": \"<email>\",\n \"slack\": \"<string>\"\n },\n \"extensions\": {\n \"Excepteur__84\": {},\n \"sit6cc\": {}\n },\n \"external-resources\": [\n {\n \"name\": \"<string>\",\n \"type\": \"wiki\",\n \"url\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"dashboard\",\n \"url\": \"<string>\"\n }\n ],\n \"integrations\": {\n \"pagerduty\": \"<string>\"\n },\n \"org\": {\n \"application\": \"<string>\",\n \"team\": \"<string>\"\n },\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ]\n }\n },\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n },\n {\n \"attributes\": {\n \"meta\": {\n \"github-html-url\": \"<string>\",\n \"ingested-schema-version\": \"<string>\",\n \"ingestion-source\": \"<string>\",\n \"last-modified-time\": \"<string>\",\n \"origin\": \"<string>\",\n \"origin-detail\": \"<string>\",\n \"warnings\": [\n {\n \"instance-location\": \"<string>\",\n \"keyword-location\": \"<string>\",\n \"message\": \"<string>\"\n },\n {\n \"instance-location\": \"<string>\",\n \"keyword-location\": \"<string>\",\n \"message\": \"<string>\"\n }\n ]\n },\n \"schema\": {\n \"schema-version\": \"v1\",\n \"info\": {\n \"dd-service\": \"<string>\",\n \"description\": \"<string>\",\n \"display-name\": \"<string>\",\n \"service-tier\": \"<string>\"\n },\n \"contact\": {\n \"email\": \"<email>\",\n \"slack\": \"<string>\"\n },\n \"extensions\": {\n \"laboris_99d\": {},\n \"ad_7d0\": {}\n },\n \"external-resources\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"url\",\n \"url\": \"<string>\"\n }\n ],\n \"integrations\": {\n \"pagerduty\": \"<string>\"\n },\n \"org\": {\n \"application\": \"<string>\",\n \"team\": \"<string>\"\n },\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ]\n }\n },\n \"id\": \"<string>\",\n \"type\": \"<string>\"\n }\n ]\n}"
},
{
"name": "Bad Request",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"schema-version\": \"v2.1\",\n \"dd-service\": \"<string>\",\n \"application\": \"<string>\",\n \"contacts\": [\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n },\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"extensions\": {\n \"qui_6\": {}\n },\n \"integrations\": {\n \"opsgenie\": {\n \"service-url\": \"<string>\",\n \"region\": \"US\"\n },\n \"pagerduty\": {\n \"service-url\": \"<string>\"\n }\n },\n \"lifecycle\": \"<string>\",\n \"links\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"runbook\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"team\": \"<string>\",\n \"tier\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/services/definitions",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"services",
"definitions"
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"<string>\",\n \"<string>\"\n ]\n}"
},
{
"name": "Forbidden",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"schema-version\": \"v2.1\",\n \"dd-service\": \"<string>\",\n \"application\": \"<string>\",\n \"contacts\": [\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n },\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"extensions\": {\n \"qui_6\": {}\n },\n \"integrations\": {\n \"opsgenie\": {\n \"service-url\": \"<string>\",\n \"region\": \"US\"\n },\n \"pagerduty\": {\n \"service-url\": \"<string>\"\n }\n },\n \"lifecycle\": \"<string>\",\n \"links\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"runbook\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"team\": \"<string>\",\n \"tier\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/services/definitions",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"services",
"definitions"
]
}
},
"status": "Forbidden",
"code": 403,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"<string>\",\n \"<string>\"\n ]\n}"
},
{
"name": "Conflict",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"schema-version\": \"v2.1\",\n \"dd-service\": \"<string>\",\n \"application\": \"<string>\",\n \"contacts\": [\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n },\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"extensions\": {\n \"qui_6\": {}\n },\n \"integrations\": {\n \"opsgenie\": {\n \"service-url\": \"<string>\",\n \"region\": \"US\"\n },\n \"pagerduty\": {\n \"service-url\": \"<string>\"\n }\n },\n \"lifecycle\": \"<string>\",\n \"links\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"runbook\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"team\": \"<string>\",\n \"tier\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/services/definitions",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"services",
"definitions"
]
}
},
"status": "Conflict",
"code": 409,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"<string>\",\n \"<string>\"\n ]\n}"
},
{
"name": "Too many requests",
"originalRequest": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"schema-version\": \"v2.1\",\n \"dd-service\": \"<string>\",\n \"application\": \"<string>\",\n \"contacts\": [\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n },\n {\n \"type\": \"email\",\n \"contact\": \"<email>\",\n \"name\": \"<string>\"\n }\n ],\n \"description\": \"<string>\",\n \"extensions\": {\n \"qui_6\": {}\n },\n \"integrations\": {\n \"opsgenie\": {\n \"service-url\": \"<string>\",\n \"region\": \"US\"\n },\n \"pagerduty\": {\n \"service-url\": \"<string>\"\n }\n },\n \"lifecycle\": \"<string>\",\n \"links\": [\n {\n \"name\": \"<string>\",\n \"type\": \"repo\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n },\n {\n \"name\": \"<string>\",\n \"type\": \"runbook\",\n \"url\": \"<string>\",\n \"provider\": \"<string>\"\n }\n ],\n \"tags\": [\n \"<string>\",\n \"<string>\"\n ],\n \"team\": \"<string>\",\n \"tier\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/v2/services/definitions",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"services",
"definitions"
]
}
},
"status": "Too Many Requests",
"code": 429,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"errors\": [\n \"<string>\",\n \"<string>\"\n ]\n}"
}
]
}