---
title: /editAddressGroupForSwagger
slug: editaddressgroupforswagger
createdAt: 2024-01-09T12:30:00.560Z
---

{
  "id": "EG5YZyIM3iCVWbECObEfI",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "http://1.1.1.1/editAddressGroupForSwagger",
    "servers": [
      {
        "url": "http://1.1.1.1/editAddressGroupForSwagger"
      }
    ],
    "name": "",
    "description": "<ul>\n<li>return - success or error response.</li>\n<li>Calling this request can be used for adding a new address group to the MPC user management so that admins will be able to include this group in the relevant policies</li>\n</ul>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [
        {
          "kind": "required",
          "name": "id",
          "type": "string",
          "example": "1234",
          "description": "a unique id for the new address group",
          "default": "1234"
        },
        {
          "kind": "required",
          "name": "name",
          "type": "string",
          "example": "MyAddressGroup",
          "description": "a unique name for the new address group",
          "default": "MyAddressGroup"
        },
        {
          "kind": "required",
          "name": "session_id",
          "type": "string",
          "example": "3478593863424051983840947",
          "description": "the session id of the contract in string",
          "default": "3478593863424051983840947"
        },
        {
          "kind": "required",
          "name": "administrative_message_number",
          "type": "integer",
          "example": 5,
          "description": "the administrative message number",
          "default": 5
        },
        {
          "kind": "required",
          "name": "contact_ids",
          "type": "array",
          "description": "defines the contact list for the new group",
          "schema": [],
          "itemType": "string",
          "customType": "string[]"
        }
      ],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "success",
        "jsonExample": "",
        "isExpanded": true
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url 'http://1.1.1.1/editAddressGroupForSwagger?id=1234&name=MyAddressGroup&session_id=3478593863424051983840947&administrative_message_number=5&contact_ids=array' \\\n     --header 'accept: application/json'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"http://1.1.1.1/editAddressGroupForSwagger?id=1234&name=MyAddressGroup&session_id=3478593863424051983840947&administrative_message_number=5&contact_ids=array\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"http://1.1.1.1/editAddressGroupForSwagger?id=1234&name=MyAddressGroup&session_id=3478593863424051983840947&administrative_message_number=5&contact_ids=array\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"http://1.1.1.1/editAddressGroupForSwagger?id=1234&name=MyAddressGroup&session_id=3478593863424051983840947&administrative_message_number=5&contact_ids=array\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// success\n"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "id": "Ib9EIxreusXDsGeb47Km-",
      "type": "bulleted-list",
      "children": [
        {
          "id": "BDgJ252rxXl1ViBcc-5g1",
          "type": "list-item",
          "children": [
            {
              "id": "vmiW2GwcJyZdsJzqz9mq-",
              "type": "list-item-child",
              "children": [
                {
                  "text": "return - success or error response.",
                  "id": "vtO9B5leZtFkD2yB-TBFf"
                }
              ]
            }
          ]
        },
        {
          "id": "7gBcxtRfMU28lKCbHKaRv",
          "type": "list-item",
          "children": [
            {
              "id": "EbL_alLHLqUh209C9rSoU",
              "type": "list-item-child",
              "children": [
                {
                  "text": "Calling this request can be used for adding a new address group to the MPC user management so that admins will be able to include this group in the relevant policies",
                  "id": "NSPBEyTngawF0utO-8fwg"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}