{
  "opencollection": "1.0.0",
  "info": {
    "name": "Arthur Tags API",
    "version": "2.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://auth.arthuronline.co.uk/oauth/authorize",
      "accessTokenUrl": "https://auth.arthuronline.co.uk/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Tags",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Tags On Resource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.arthuronline.co.uk/v2/tags/:resource",
            "headers": [
              {
                "name": "X-EntityID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "resource",
                "value": "",
                "type": "path",
                "description": "Arthur resource."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number, between 1 and the total number of pages."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Items per page, between 1 and 100."
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Field to sort the collection by."
              },
              {
                "name": "direction",
                "value": "",
                "type": "query",
                "description": "Sort direction."
              }
            ]
          },
          "docs": "This endpoint retrieves a list of tags related to the following resources:\n\nProperties \n Units \n Tenancies \n Tasks \n Applicants \n Viewings"
        },
        {
          "info": {
            "name": "Add Tag On Resource",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.arthuronline.co.uk/v2/tags/:resource",
            "headers": [
              {
                "name": "X-EntityID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "resource",
                "value": "",
                "type": "path",
                "description": "Arthur resource."
              },
              {
                "name": "strict",
                "value": "",
                "type": "query",
                "description": "When true, abort the request instead of auto-creating an unknown Simple type. POST and PUT only."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use this endpoint to create a new tag record on a resource . The API will return the saved data and a unique tag ID.\n\nTags can be added to resources such as tenancies, tasks, units, applicants, viewings, and properties.\nIf field color not provided it will select a random color.\n\nSupported Fields \n The following fields are supported for the request body\n\nField \n Example \n Type \n Required? \n\nname \n All fixed \n String \n Yes \n\ncolor \n Blue \n String \n No"
        },
        {
          "info": {
            "name": "View Tag",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.arthuronline.co.uk/v2/tags/:tag_id",
            "headers": [
              {
                "name": "X-EntityID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "tag_id",
                "value": "",
                "type": "path",
                "description": "Arthur tag id."
              }
            ]
          },
          "docs": "This API endpoint retrieves the details of a single tag, identified by its unique  tag_id .\n\nUse this endpoint to view the specific details of a tag."
        },
        {
          "info": {
            "name": "Update Tag",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.arthuronline.co.uk/v2/tags/:tag_id",
            "headers": [
              {
                "name": "X-EntityID",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "tag_id",
                "value": "",
                "type": "path",
                "description": "Arthur tag id."
              },
              {
                "name": "strict",
                "value": "",
                "type": "query",
                "description": "When true, abort the request instead of auto-creating an unknown Simple type. POST and PUT only."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint updates an existing tag using the same fields as the 'Add Tag' endpoint. The API will return the updated data for the tag in the response.\n\nSupported Fields \n The following fields are supported for the request body\n\nField \n Example \n Type \n Required? \n\nname \n All fixed \n String \n No \n\ncolor \n Blue \n String \n No"
        }
      ]
    }
  ],
  "bundled": true
}