{
  "opencollection": "1.0.0",
  "info": {
    "name": "Joblogic Assets Contacts API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://uatidentityserver.joblogic.com/connect/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Contacts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a contact",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.joblogic.com/api/v1/Contact",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a contact"
        },
        {
          "info": {
            "name": "Update a contact",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.joblogic.com/api/v1/Contact",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a contact"
        },
        {
          "info": {
            "name": "Delete a contact",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.joblogic.com/api/v1/Contact",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "The resource's unique identifier (GUID)."
              },
              {
                "name": "tenantId",
                "value": "",
                "type": "query",
                "description": "The caller's Joblogic tenant identifier (GUID)."
              }
            ]
          },
          "docs": "Delete a contact"
        },
        {
          "info": {
            "name": "Get contacts by parent entity",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.joblogic.com/api/v1/Contact/GetContactByEntityId",
            "params": [
              {
                "name": "tenantId",
                "value": "",
                "type": "query",
                "description": "The caller's Joblogic tenant identifier (GUID)."
              },
              {
                "name": "entityId",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Lists contacts attached to a parent entity (customer, site, supplier, or subcontractor) by its unique ID."
        }
      ]
    }
  ],
  "bundled": true
}