Skip to content

Instantly share code, notes, and snippets.

@YannickRe
Created May 22, 2018 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YannickRe/a701e2d3cbcba798a23f1fb3ca7439df to your computer and use it in GitHub Desktop.
Save YannickRe/a701e2d3cbcba798a23f1fb3ca7439df to your computer and use it in GitHub Desktop.
Create Channel through Microsoft Graph, take 2
{
"uri": "https://graph.microsoft.com/beta/groups/4b915404-d27d-43ee-9ad2-781c6395f059/team/channels",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"authentication": {
"authority": "https://login.microsoftonline.com",
"tenant": "*sanitized*",
"audience": "*sanitized*",
"clientId": "*sanitized*",
"secret": "*sanitized*",
"type": "ActiveDirectoryOAuth"
},
"body": {
"Description": "",
"DisplayName": "Quality"
}
}
{
"uri": "https://graph.microsoft.com/beta/groups/4b915404-d27d-43ee-9ad2-781c6395f059/team/channels",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"authentication": {
"authority": "https://login.microsoftonline.com",
"tenant": "*sanitized*",
"audience": "*sanitized*",
"clientId": "*sanitized*",
"secret": "*sanitized*",
"type": "ActiveDirectoryOAuth"
},
"body": {
"Description": "",
"DisplayName": "Deliveries"
}
}
{
"uri": "https://graph.microsoft.com/beta/groups/4b915404-d27d-43ee-9ad2-781c6395f059/team/channels",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"authentication": {
"authority": "https://login.microsoftonline.com",
"tenant": "*sanitized*",
"audience": "*sanitized*",
"clientId": "*sanitized*",
"secret": "*sanitized*",
"type": "ActiveDirectoryOAuth"
},
"body": {
"Description": "",
"DisplayName": "Contracts"
}
}
{
"uri": "https://graph.microsoft.com/beta/groups/4b915404-d27d-43ee-9ad2-781c6395f059/team/channels",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"authentication": {
"authority": "https://login.microsoftonline.com",
"tenant": "*sanitized*",
"audience": "*sanitized*",
"clientId": "*sanitized*",
"secret": "*sanitized*",
"type": "ActiveDirectoryOAuth"
},
"body": {
"Description": "",
"DisplayName": "Product Information"
}
}
{
"statusCode": 201,
"headers": {
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Date": "Tue, 22 May 2018 15:43:21 GMT",
"Server": "Microsoft-IIS/10.0",
"X-Powered-By": "ASP.NET",
"Content-Length": "86",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1"
},
"body": {
"id": "a6ec73f8-6ca1-4260-9cb2-b1c50882db5d",
"displayName": "Quality",
"description": ""
}
}
{
"statusCode": 201,
"headers": {
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Date": "Tue, 22 May 2018 15:43:24 GMT",
"Server": "Microsoft-IIS/10.0",
"X-Powered-By": "ASP.NET",
"Content-Length": "89",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1"
},
"body": {
"id": "c8a6f5a3-e46c-4cab-bf0f-3c568bf1707c",
"displayName": "Deliveries",
"description": ""
}
}
{
"statusCode": 201,
"headers": {
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Date": "Tue, 22 May 2018 15:43:21 GMT",
"Server": "Microsoft-IIS/10.0",
"X-Powered-By": "ASP.NET",
"Content-Length": "88",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1"
},
"body": {
"id": "1d9ea433-6b29-4ecd-b9d3-26f396a2c070",
"displayName": "Contracts",
"description": ""
}
}
{
"statusCode": 201,
"headers": {
"Pragma": "no-cache",
"Cache-Control": "no-cache",
"Date": "Tue, 22 May 2018 15:43:21 GMT",
"Server": "Microsoft-IIS/10.0",
"X-Powered-By": "ASP.NET",
"Content-Length": "98",
"Content-Type": "application/json; charset=utf-8",
"Expires": "-1"
},
"body": {
"id": "dc36c43d-bf29-41e5-b103-6a795da64d28",
"displayName": "Product Information",
"description": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment