Back to Collection Items
-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
-- Important: Do not use nvarchar(max). See the warning about using nvarchar(max).
DECLARE @sTmp0 nvarchar(4000)
-- This example assumes the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @http int
-- Use "Chilkat_9_5_0.Http" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.Http', @http OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
DECLARE @queryParams int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @queryParams OUT
EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'page[number]', 0
EXEC sp_OAMethod @queryParams, 'UpdateInt', @success OUT, 'page[size]', 10
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'sort', 'user_count'
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'include', 'user_team_permissions'
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'include', 'team_links'
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[keyword]', '<string>'
EXEC sp_OAMethod @queryParams, 'UpdateString', @success OUT, 'filter[me]', '<boolean>'
EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Accept', 'application/json'
DECLARE @resp int
EXEC sp_OAMethod @http, 'QuickRequestParams', @resp OUT, 'GET', 'https://api.app.ddog-gov.com/api/v2/team', @queryParams
EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
IF @iTmp0 = 0
BEGIN
EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
RETURN
END
DECLARE @sbResponseBody int
-- Use "Chilkat_9_5_0.StringBuilder" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody
DECLARE @jResp int
-- Use "Chilkat_9_5_0.JsonObject" for versions of Chilkat < 10.0.0
EXEC @hr = sp_OACreate 'Chilkat.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
EXEC sp_OASetProperty @jResp, 'EmitCompact', 0
PRINT 'Response Body:'
EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
PRINT @sTmp0
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT
PRINT 'Response Status Code = ' + @respStatusCode
IF @respStatusCode >= 400
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Failed.'
EXEC @hr = sp_OADestroy @resp
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
RETURN
END
EXEC @hr = sp_OADestroy @resp
-- Sample JSON response:
-- (Sample code for parsing the JSON response is shown below)
-- {
-- "data": [
-- {
-- "attributes": {
-- "handle": "<string>",
-- "name": "<string>",
-- "avatar": "<string>",
-- "banner": "<long>",
-- "created_at": "<dateTime>",
-- "description": "<string>",
-- "hidden_modules": [
-- "<string>",
-- "<string>"
-- ],
-- "link_count": "<integer>",
-- "modified_at": "<dateTime>",
-- "summary": "<string>",
-- "user_count": "<integer>",
-- "visible_modules": [
-- "<string>",
-- "<string>"
-- ]
-- },
-- "id": "<string>",
-- "type": "team",
-- "relationships": {
-- "team_links": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "team_links"
-- },
-- {
-- "id": "<string>",
-- "type": "team_links"
-- }
-- ],
-- "links": {
-- "related": "<string>"
-- }
-- },
-- "user_team_permissions": {
-- "data": {
-- "id": "<string>",
-- "type": "user_team_permissions"
-- },
-- "links": {
-- "related": "<string>"
-- }
-- }
-- }
-- },
-- {
-- "attributes": {
-- "handle": "<string>",
-- "name": "<string>",
-- "avatar": "<string>",
-- "banner": "<long>",
-- "created_at": "<dateTime>",
-- "description": "<string>",
-- "hidden_modules": [
-- "<string>",
-- "<string>"
-- ],
-- "link_count": "<integer>",
-- "modified_at": "<dateTime>",
-- "summary": "<string>",
-- "user_count": "<integer>",
-- "visible_modules": [
-- "<string>",
-- "<string>"
-- ]
-- },
-- "id": "<string>",
-- "type": "team",
-- "relationships": {
-- "team_links": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "team_links"
-- },
-- {
-- "id": "<string>",
-- "type": "team_links"
-- }
-- ],
-- "links": {
-- "related": "<string>"
-- }
-- },
-- "user_team_permissions": {
-- "data": {
-- "id": "<string>",
-- "type": "user_team_permissions"
-- },
-- "links": {
-- "related": "<string>"
-- }
-- }
-- }
-- }
-- ],
-- "included": [
-- {
-- "attributes": {
-- "created_at": "<dateTime>",
-- "disabled": "<boolean>",
-- "email": "<string>",
-- "handle": "<string>",
-- "icon": "<string>",
-- "modified_at": "<dateTime>",
-- "name": "<string>",
-- "service_account": "<boolean>",
-- "status": "<string>",
-- "title": "<string>",
-- "verified": "<boolean>"
-- },
-- "id": "<string>",
-- "relationships": {
-- "org": {
-- "data": {
-- "id": "<string>",
-- "type": "orgs"
-- }
-- },
-- "other_orgs": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "orgs"
-- },
-- {
-- "id": "<string>",
-- "type": "orgs"
-- }
-- ]
-- },
-- "other_users": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "users"
-- },
-- {
-- "id": "<string>",
-- "type": "users"
-- }
-- ]
-- },
-- "roles": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "roles"
-- },
-- {
-- "id": "<string>",
-- "type": "roles"
-- }
-- ]
-- }
-- },
-- "type": "users"
-- },
-- {
-- "attributes": {
-- "created_at": "<dateTime>",
-- "disabled": "<boolean>",
-- "email": "<string>",
-- "handle": "<string>",
-- "icon": "<string>",
-- "modified_at": "<dateTime>",
-- "name": "<string>",
-- "service_account": "<boolean>",
-- "status": "<string>",
-- "title": "<string>",
-- "verified": "<boolean>"
-- },
-- "id": "<string>",
-- "relationships": {
-- "org": {
-- "data": {
-- "id": "<string>",
-- "type": "orgs"
-- }
-- },
-- "other_orgs": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "orgs"
-- },
-- {
-- "id": "<string>",
-- "type": "orgs"
-- }
-- ]
-- },
-- "other_users": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "users"
-- },
-- {
-- "id": "<string>",
-- "type": "users"
-- }
-- ]
-- },
-- "roles": {
-- "data": [
-- {
-- "id": "<string>",
-- "type": "roles"
-- },
-- {
-- "id": "<string>",
-- "type": "roles"
-- }
-- ]
-- }
-- },
-- "type": "users"
-- }
-- ],
-- "links": {
-- "first": "<string>",
-- "last": "<string>",
-- "next": "<string>",
-- "prev": "<string>",
-- "self": "<string>"
-- },
-- "meta": {
-- "pagination": {
-- "first_offset": "<long>",
-- "last_offset": "<long>",
-- "limit": "<long>",
-- "next_offset": "<long>",
-- "offset": "<long>",
-- "prev_offset": "<long>",
-- "total": "<long>",
-- "type": "<string>"
-- }
-- }
-- }
-- Sample code for parsing the JSON response...
-- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
DECLARE @Handle nvarchar(4000)
DECLARE @Name nvarchar(4000)
DECLARE @Avatar nvarchar(4000)
DECLARE @Banner nvarchar(4000)
DECLARE @Created_at nvarchar(4000)
DECLARE @Description nvarchar(4000)
DECLARE @Link_count nvarchar(4000)
DECLARE @Modified_at nvarchar(4000)
DECLARE @Summary nvarchar(4000)
DECLARE @User_count nvarchar(4000)
DECLARE @id nvarchar(4000)
DECLARE @v_type nvarchar(4000)
DECLARE @Related nvarchar(4000)
DECLARE @Id nvarchar(4000)
DECLARE @DataType nvarchar(4000)
DECLARE @LinksRelated nvarchar(4000)
DECLARE @j int
DECLARE @count_j int
DECLARE @strVal nvarchar(4000)
DECLARE @attributesCreated_at nvarchar(4000)
DECLARE @Disabled nvarchar(4000)
DECLARE @v_Email nvarchar(4000)
DECLARE @attributesHandle nvarchar(4000)
DECLARE @Icon nvarchar(4000)
DECLARE @attributesModified_at nvarchar(4000)
DECLARE @attributesName nvarchar(4000)
DECLARE @Service_account nvarchar(4000)
DECLARE @Status nvarchar(4000)
DECLARE @Title nvarchar(4000)
DECLARE @Verified nvarchar(4000)
DECLARE @DataId nvarchar(4000)
DECLARE @First nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @First OUT, 'links.first'
DECLARE @Last nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Last OUT, 'links.last'
DECLARE @v_Next nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Next OUT, 'links.next'
DECLARE @Prev nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Prev OUT, 'links.prev'
DECLARE @v_Self nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Self OUT, 'links.self'
DECLARE @First_offset nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @First_offset OUT, 'meta.pagination.first_offset'
DECLARE @Last_offset nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Last_offset OUT, 'meta.pagination.last_offset'
DECLARE @Limit nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Limit OUT, 'meta.pagination.limit'
DECLARE @Next_offset nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Next_offset OUT, 'meta.pagination.next_offset'
DECLARE @Offset nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Offset OUT, 'meta.pagination.offset'
DECLARE @Prev_offset nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Prev_offset OUT, 'meta.pagination.prev_offset'
DECLARE @Total nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @Total OUT, 'meta.pagination.total'
DECLARE @v_Type nvarchar(4000)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'meta.pagination.type'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'data'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @Handle OUT, 'data[i].attributes.handle'
EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'data[i].attributes.name'
EXEC sp_OAMethod @jResp, 'StringOf', @Avatar OUT, 'data[i].attributes.avatar'
EXEC sp_OAMethod @jResp, 'StringOf', @Banner OUT, 'data[i].attributes.banner'
EXEC sp_OAMethod @jResp, 'StringOf', @Created_at OUT, 'data[i].attributes.created_at'
EXEC sp_OAMethod @jResp, 'StringOf', @Description OUT, 'data[i].attributes.description'
EXEC sp_OAMethod @jResp, 'StringOf', @Link_count OUT, 'data[i].attributes.link_count'
EXEC sp_OAMethod @jResp, 'StringOf', @Modified_at OUT, 'data[i].attributes.modified_at'
EXEC sp_OAMethod @jResp, 'StringOf', @Summary OUT, 'data[i].attributes.summary'
EXEC sp_OAMethod @jResp, 'StringOf', @User_count OUT, 'data[i].attributes.user_count'
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'data[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'data[i].type'
EXEC sp_OAMethod @jResp, 'StringOf', @Related OUT, 'data[i].relationships.team_links.links.related'
EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'data[i].relationships.user_team_permissions.data.id'
EXEC sp_OAMethod @jResp, 'StringOf', @DataType OUT, 'data[i].relationships.user_team_permissions.data.type'
EXEC sp_OAMethod @jResp, 'StringOf', @LinksRelated OUT, 'data[i].relationships.user_team_permissions.links.related'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'data[i].attributes.hidden_modules'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'data[i].attributes.hidden_modules[j]'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'data[i].attributes.visible_modules'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @strVal OUT, 'data[i].attributes.visible_modules[j]'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'data[i].relationships.team_links.data'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'data[i].relationships.team_links.data[j].id'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'data[i].relationships.team_links.data[j].type'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
SELECT @i = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'included'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @attributesCreated_at OUT, 'included[i].attributes.created_at'
EXEC sp_OAMethod @jResp, 'StringOf', @Disabled OUT, 'included[i].attributes.disabled'
EXEC sp_OAMethod @jResp, 'StringOf', @v_Email OUT, 'included[i].attributes.email'
EXEC sp_OAMethod @jResp, 'StringOf', @attributesHandle OUT, 'included[i].attributes.handle'
EXEC sp_OAMethod @jResp, 'StringOf', @Icon OUT, 'included[i].attributes.icon'
EXEC sp_OAMethod @jResp, 'StringOf', @attributesModified_at OUT, 'included[i].attributes.modified_at'
EXEC sp_OAMethod @jResp, 'StringOf', @attributesName OUT, 'included[i].attributes.name'
EXEC sp_OAMethod @jResp, 'StringOf', @Service_account OUT, 'included[i].attributes.service_account'
EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'included[i].attributes.status'
EXEC sp_OAMethod @jResp, 'StringOf', @Title OUT, 'included[i].attributes.title'
EXEC sp_OAMethod @jResp, 'StringOf', @Verified OUT, 'included[i].attributes.verified'
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].id'
EXEC sp_OAMethod @jResp, 'StringOf', @DataId OUT, 'included[i].relationships.org.data.id'
EXEC sp_OAMethod @jResp, 'StringOf', @DataType OUT, 'included[i].relationships.org.data.type'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].type'
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'included[i].relationships.other_orgs.data'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].relationships.other_orgs.data[j].id'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].relationships.other_orgs.data[j].type'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'included[i].relationships.other_users.data'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].relationships.other_users.data[j].id'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].relationships.other_users.data[j].type'
SELECT @j = @j + 1
END
SELECT @j = 0
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'included[i].relationships.roles.data'
WHILE @j < @count_j
BEGIN
EXEC sp_OASetProperty @jResp, 'J', @j
EXEC sp_OAMethod @jResp, 'StringOf', @id OUT, 'included[i].relationships.roles.data[j].id'
EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'included[i].relationships.roles.data[j].type'
SELECT @j = @j + 1
END
SELECT @i = @i + 1
END
EXEC @hr = sp_OADestroy @http
EXEC @hr = sp_OADestroy @queryParams
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO
Curl Command
curl -G -d "page[number]=0"
-d "page[size]=10"
-d "sort=user_count"
-d "include=user_team_permissions"
-d "include=team_links"
-d "filter[keyword]=%3Cstring%3E"
-d "filter[me]=%3Cboolean%3E"
-H "Accept: application/json"
https://api.app.ddog-gov.com/api/v2/team
Postman Collection Item JSON
{
"name": "Get all teams",
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/team?page[number]=0&page[size]=10&sort=user_count&include=user_team_permissions&include=team_links&filter[keyword]=<string>&filter[me]=<boolean>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"team"
],
"query": [
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
},
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "sort",
"value": "user_count",
"description": "Specifies the order of the returned teams"
},
{
"key": "include",
"value": "user_team_permissions",
"description": "Included related resources optionally requested. Allowed enum values: `team_links, user_team_permissions`"
},
{
"key": "include",
"value": "team_links",
"description": "Included related resources optionally requested. Allowed enum values: `team_links, user_team_permissions`"
},
{
"key": "filter[keyword]",
"value": "<string>",
"description": "Search query. Can be team name, team handle, or email of team member"
},
{
"key": "filter[me]",
"value": "<boolean>",
"description": "When true, only returns teams the current user belongs to"
}
]
},
"description": "Get all teams.\nCan be used to search for teams using the `filter[keyword]` and `filter[me]` query parameters."
},
"response": [
{
"name": "OK",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/team?page[number]=0&page[size]=10&sort=user_count&include=team_links&filter[keyword]=<string>&filter[me]=<boolean>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"team"
],
"query": [
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
},
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "sort",
"value": "user_count",
"description": "Specifies the order of the returned teams"
},
{
"key": "include",
"value": "team_links",
"description": "Included related resources optionally requested. Allowed enum values: `team_links, user_team_permissions`"
},
{
"key": "filter[keyword]",
"value": "<string>",
"description": "Search query. Can be team name, team handle, or email of team member"
},
{
"key": "filter[me]",
"value": "<boolean>",
"description": "When true, only returns teams the current user belongs to"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"data\": [\n {\n \"attributes\": {\n \"handle\": \"<string>\",\n \"name\": \"<string>\",\n \"avatar\": \"<string>\",\n \"banner\": \"<long>\",\n \"created_at\": \"<dateTime>\",\n \"description\": \"<string>\",\n \"hidden_modules\": [\n \"<string>\",\n \"<string>\"\n ],\n \"link_count\": \"<integer>\",\n \"modified_at\": \"<dateTime>\",\n \"summary\": \"<string>\",\n \"user_count\": \"<integer>\",\n \"visible_modules\": [\n \"<string>\",\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"type\": \"team\",\n \"relationships\": {\n \"team_links\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"team_links\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"team_links\"\n }\n ],\n \"links\": {\n \"related\": \"<string>\"\n }\n },\n \"user_team_permissions\": {\n \"data\": {\n \"id\": \"<string>\",\n \"type\": \"user_team_permissions\"\n },\n \"links\": {\n \"related\": \"<string>\"\n }\n }\n }\n },\n {\n \"attributes\": {\n \"handle\": \"<string>\",\n \"name\": \"<string>\",\n \"avatar\": \"<string>\",\n \"banner\": \"<long>\",\n \"created_at\": \"<dateTime>\",\n \"description\": \"<string>\",\n \"hidden_modules\": [\n \"<string>\",\n \"<string>\"\n ],\n \"link_count\": \"<integer>\",\n \"modified_at\": \"<dateTime>\",\n \"summary\": \"<string>\",\n \"user_count\": \"<integer>\",\n \"visible_modules\": [\n \"<string>\",\n \"<string>\"\n ]\n },\n \"id\": \"<string>\",\n \"type\": \"team\",\n \"relationships\": {\n \"team_links\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"team_links\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"team_links\"\n }\n ],\n \"links\": {\n \"related\": \"<string>\"\n }\n },\n \"user_team_permissions\": {\n \"data\": {\n \"id\": \"<string>\",\n \"type\": \"user_team_permissions\"\n },\n \"links\": {\n \"related\": \"<string>\"\n }\n }\n }\n }\n ],\n \"included\": [\n {\n \"attributes\": {\n \"created_at\": \"<dateTime>\",\n \"disabled\": \"<boolean>\",\n \"email\": \"<string>\",\n \"handle\": \"<string>\",\n \"icon\": \"<string>\",\n \"modified_at\": \"<dateTime>\",\n \"name\": \"<string>\",\n \"service_account\": \"<boolean>\",\n \"status\": \"<string>\",\n \"title\": \"<string>\",\n \"verified\": \"<boolean>\"\n },\n \"id\": \"<string>\",\n \"relationships\": {\n \"org\": {\n \"data\": {\n \"id\": \"<string>\",\n \"type\": \"orgs\"\n }\n },\n \"other_orgs\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"orgs\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"orgs\"\n }\n ]\n },\n \"other_users\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"users\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"users\"\n }\n ]\n },\n \"roles\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"roles\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"roles\"\n }\n ]\n }\n },\n \"type\": \"users\"\n },\n {\n \"attributes\": {\n \"created_at\": \"<dateTime>\",\n \"disabled\": \"<boolean>\",\n \"email\": \"<string>\",\n \"handle\": \"<string>\",\n \"icon\": \"<string>\",\n \"modified_at\": \"<dateTime>\",\n \"name\": \"<string>\",\n \"service_account\": \"<boolean>\",\n \"status\": \"<string>\",\n \"title\": \"<string>\",\n \"verified\": \"<boolean>\"\n },\n \"id\": \"<string>\",\n \"relationships\": {\n \"org\": {\n \"data\": {\n \"id\": \"<string>\",\n \"type\": \"orgs\"\n }\n },\n \"other_orgs\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"orgs\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"orgs\"\n }\n ]\n },\n \"other_users\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"users\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"users\"\n }\n ]\n },\n \"roles\": {\n \"data\": [\n {\n \"id\": \"<string>\",\n \"type\": \"roles\"\n },\n {\n \"id\": \"<string>\",\n \"type\": \"roles\"\n }\n ]\n }\n },\n \"type\": \"users\"\n }\n ],\n \"links\": {\n \"first\": \"<string>\",\n \"last\": \"<string>\",\n \"next\": \"<string>\",\n \"prev\": \"<string>\",\n \"self\": \"<string>\"\n },\n \"meta\": {\n \"pagination\": {\n \"first_offset\": \"<long>\",\n \"last_offset\": \"<long>\",\n \"limit\": \"<long>\",\n \"next_offset\": \"<long>\",\n \"offset\": \"<long>\",\n \"prev_offset\": \"<long>\",\n \"total\": \"<long>\",\n \"type\": \"<string>\"\n }\n }\n}"
},
{
"name": "Too many requests",
"originalRequest": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "DD-API-KEY",
"value": "<API Key>"
}
],
"url": {
"raw": "{{baseUrl}}/api/v2/team?page[number]=0&page[size]=10&sort=user_count&include=team_links&filter[keyword]=<string>&filter[me]=<boolean>",
"host": [
"{{baseUrl}}"
],
"path": [
"api",
"v2",
"team"
],
"query": [
{
"key": "page[number]",
"value": "0",
"description": "Specific page number to return."
},
{
"key": "page[size]",
"value": "10",
"description": "Size for a given page. The maximum allowed value is 100."
},
{
"key": "sort",
"value": "user_count",
"description": "Specifies the order of the returned teams"
},
{
"key": "include",
"value": "team_links",
"description": "Included related resources optionally requested. Allowed enum values: `team_links, user_team_permissions`"
},
{
"key": "filter[keyword]",
"value": "<string>",
"description": "Search query. Can be team name, team handle, or email of team member"
},
{
"key": "filter[me]",
"value": "<boolean>",
"description": "When true, only returns teams the current user belongs to"
}
]
}
},
"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}"
}
]
}