Chilkat Online Tools

Unicode C++ / Anypoint Platform APIs / Create a new rolegroup

Back to Collection Items

void ChilkatSample(void)
    {
    json.UpdateString(L"name",L"External Org Admin 2");    json.UpdateString(L"description",L"Description");    http.put_AuthToken(L"{{token}}");
    }

Curl Command

curl -X POST
	-H "Authorization: Bearer {{token}}"
	-d '{
    "name":"External Org Admin 2",
    "description":"Description"
}'
https://domain.com/accounts/api/organizations/{{organization_id}}/rolegroups?include_internal=false

Postman Collection Item JSON

{
  "name": "Create a new rolegroup",
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Authorization",
        "value": "Bearer {{token}}",
        "type": "text"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\r\n    \"name\":\"External Org Admin 2\",\r\n    \"description\":\"Description\"\r\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{url}}/accounts/api/organizations/{{organization_id}}/rolegroups?include_internal=false",
      "host": [
        "{{url}}"
      ],
      "path": [
        "accounts",
        "api",
        "organizations",
        "{{organization_id}}",
        "rolegroups"
      ],
      "query": [
        {
          "key": "include_internal",
          "value": "false"
        }
      ]
    }
  },
  "response": [
  ]
}