{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-templates-api-sharing-settings-response-schema.json",
  "title": "Templates_API_SharingSettingsResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-templates-api-openapi.yml#/components/schemas/Templates_API_SharingSettingsResponse",
  "allOf": [
    {
      "$ref": "#/$defs/Templates_API_SharingSettings"
    },
    {
      "type": "object",
      "properties": {
        "_links": {
          "$ref": "#/$defs/Templates_API_SharingSettingsLinks"
        }
      }
    }
  ],
  "$defs": {
    "Templates_API_Link": {
      "type": "object",
      "description": "A hyperlink from the containing resource to a URI.",
      "required": [
        "href"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Its value is either a URI [RFC3986] or a URI template [RFC6570]."
        },
        "templated": {
          "type": "boolean",
          "description": "Should be true when the link object's \"href\" property is a URI template."
        },
        "type": {
          "type": "string",
          "description": "Used as a hint to indicate the media type expected when dereferencing the target resource."
        },
        "deprecation": {
          "type": "string",
          "description": "Its presence indicates that the link is to be deprecated at a future date. Its value is a URL that should provide further information about the deprecation."
        },
        "name": {
          "type": "string",
          "description": "Its value may be used as a secondary key for selecting link objects that share the same relation type."
        },
        "profile": {
          "type": "string",
          "description": "A URI that hints about the profile of the target resource."
        },
        "title": {
          "type": "string",
          "description": "Intended for labelling the link with a human-readable identifier"
        },
        "hreflang": {
          "type": "string",
          "description": "Indicates the language of the target resource"
        }
      }
    },
    "Templates_API_SharingScope": {
      "type": "string",
      "description": "The scope of the template sharing. The accepted values are:\n- `default`: The template is visible only within the account group that owns it.\n- `organization`: The template is visible by all the users within the organization that owns it.\n",
      "enum": [
        "default",
        "organization"
      ]
    },
    "Templates_API_SharingSettings": {
      "required": [
        "scope"
      ],
      "type": "object",
      "properties": {
        "scope": {
          "$ref": "#/$defs/Templates_API_SharingScope"
        }
      },
      "description": "The Template to change the sharing settings for."
    },
    "Templates_API_SharingSettingsLink": {
      "allOf": [
        {
          "description": "A reference to the sharing settings."
        },
        {
          "$ref": "#/$defs/Templates_API_Link"
        }
      ]
    },
    "Templates_API_SharingSettingsLinks": {
      "type": "object",
      "description": "A list of links that can be accessed to get more information.",
      "properties": {
        "self": {
          "$ref": "#/$defs/Templates_API_SharingSettingsLink"
        },
        "template": {
          "$ref": "#/$defs/Templates_API_TemplateLink"
        }
      },
      "readOnly": true
    },
    "Templates_API_TemplateLink": {
      "allOf": [
        {
          "description": "A reference to the template."
        },
        {
          "$ref": "#/$defs/Templates_API_Link"
        }
      ]
    }
  }
}