{
  "opencollection": "1.0.0",
  "info": {
    "name": "Wrike Access Roles Contacts API",
    "version": "4.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://www.wrike.com/oauth2/authorize",
      "accessTokenUrl": "https://www.wrike.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Contacts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.wrike.com/api/v4/contacts",
            "params": [
              {
                "name": "me",
                "value": "",
                "type": "query",
                "description": "If present, only contact info of the requesting user is returned"
              },
              {
                "name": "metadata",
                "value": "",
                "type": "query",
                "description": "Metadata filter, exact match for metadata key or key-value pair"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "JSON string array of optional fields to include in the response"
              }
            ]
          },
          "docs": "Returns a list of contacts of all users and user groups in all accessible accounts."
        },
        {
          "info": {
            "name": "Get Contact",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://www.wrike.com/api/v4/contacts/:contactId",
            "params": [
              {
                "name": "contactId",
                "value": "",
                "type": "path",
                "description": "Comma-separated list of contact IDs (up to 100)"
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "JSON string array of optional fields to include in the response"
              }
            ]
          },
          "docs": "Returns contact information for specified users and user groups."
        },
        {
          "info": {
            "name": "Update Contact",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://www.wrike.com/api/v4/contacts/:contactId",
            "params": [
              {
                "name": "contactId",
                "value": "",
                "type": "path",
                "description": "The contact ID"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "metadata",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Updates contact information. Only the contact whose API token is being used may be updated."
        }
      ]
    }
  ],
  "bundled": true
}