Skip to content
Snippets Groups Projects
process-objects.json 930 KiB
Newer Older
Rebecca Wheeler's avatar
Rebecca Wheeler committed
{
  "openapi": "3.0.2",
  "info": {
    "title": "Person API",
    "version": "1.0.0",
    "contact": {
      "name": "DoIT Enterprise Integration API Team",
      "email": "api@doit.wisc.edu",
      "url": "https://go.wisc.edu/k701y6"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
    },
    "description": "An API for interacting with person data at UW-Madison. Refer to the [Person API Documentation](/person-api) for more information about this API."
  },
  "servers": [
    {
      "url": "https://api.wisc.edu"
    }
  ],
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ],
  "externalDocs": {
    "description": "Read more about JSON:API here",
    "url": "https://jsonapi.org/"
  },
  "paths": {
    "/people": {
      "get": {
        "description": "Get a collection of people.",
        "summary": "Get people.",
        "operationId": "get_people",
        "tags": [
          "people"
        ],
        "parameters": [
          {
            "name": "filter",
            "in": "query",
            "description": "Filter results of query using the [filter query parameter family](https://jsonapi.org/recommendations/#filtering). Refer to the [Person API Documentation](/person-api/filter-query-parameter) for more information about the `filter` query param.",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "attribute": {
                  "type": "string",
                  "example": "firstName"
                }
              }
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "Specify the list of fields you would like to return for each resource type.  For example, `fields[people]=firstName,lastName` will just return the names for people.  If you are including related resources with 'includes' you can also specify fields on those resources as well.  For example, `includes=jobs&fields[people]=jobs&fields[jobs]=title` will just return titles for jobs.  See [Sparse Fieldsets](https://jsonapi.org/format/#fetching-sparse-fieldsets) for more details.",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string",
                  "example": "people"
                }
              }
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "[include related resources](https://jsonapi.org/format/#fetching-includes). The resources to include need to be direct relationships. Nested relationships are not supported. For example, `include=jobs,identifiers` is supported but `include=person.jobs` is not supported.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "Define options for pagination of responses. For example, `page[size]=5&page[after]=400&page[before]=800` will return a response with data about 5 people whose `id` value falls after `400` but before `800`. So `page[size]` determines the number of people resources in a response, `page[after]` is the ID of the person at the end of the previous page, `page[before]` is the ID of the person at the start of the next page. Offset pagination is also supported using `page[number]` parameter (example: `page[number]=4&page[size]=10`), but it is disabled by default. The `page[number]` determines the page to display. Offset pagination has significantly worse performance than cursor pagination, so it should only be used by applications that can't support cursor pagination. Contact the developers if you would like to enable it.",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "properties": {
                "size": {
                  "type": "integer",
                  "example": 50,
                  "maximum": 1000,
                  "minimum": 1,
                  "default": 100,
                  "description": "Size of page for paginated results."
                },
                "after": {
                  "type": "string",
                  "description": "An ephemeral identifier used only in the Person API to adhere to the [JSON:API specification](https://jsonapi.org/format/#document-resource-object-identification). This ID may change if a person is split into two people or two people are merged into one person. This ID is used for paginating results or following other links returned in the API response. This ID should not be stored in a consuming system. Concatenating parts of the URL to form a link is discouraged. Instead, use the fully-formed links returned in an API response.",
                  "example": "12345"
                },
                "before": {
                  "type": "string",
                  "description": "An ephemeral identifier used only in the Person API to adhere to the [JSON:API specification](https://jsonapi.org/format/#document-resource-object-identification). This ID may change if a person is split into two people or two people are merged into one person. This ID is used for paginating results or following other links returned in the API response. This ID should not be stored in a consuming system. Concatenating parts of the URL to form a link is discouraged. Instead, use the fully-formed links returned in an API response.",
                  "example": "12345"
                },
                "number": {
                  "type": "integer",
                  "example": 1,
                  "minimum": 1,
                  "description": "Page number for paginated results. This parameter is disabled by default. Contact the developers if you would like to enable it."
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A collection of people",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "links"
                  ],
                  "properties": {
                    "data": {
                      "description": "A collection of people",
                      "type": "array",
                      "items": {
                        "description": "A person",
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "attributes",
                          "relationships",
                          "links",
                          "meta"
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "example": "people"
                          },
                          "id": {
                            "type": "string",
                            "description": "An ephemeral identifier used only in the Person API to adhere to the [JSON:API specification](https://jsonapi.org/format/#document-resource-object-identification). This ID may change if a person is split into two people or two people are merged into one person. This ID is used for paginating results or following other links returned in the API response. This ID should not be stored in a consuming system. Concatenating parts of the URL to form a link is discouraged. Instead, use the fully-formed links returned in an API response.",
                            "example": "12345"
                          },
                          "attributes": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "type": "object",
                            "required": [
                              "firstName",
                              "lastName",
                              "emailAddress",
                              "officeAddress",
                              "officePhoneNumber"
                            ],
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "properties": {
                              "firstName": {
                                "type": "string",
                                "example": "John",
                                "description": "First name, derived from the person's current UW affiliations."
                              },
                              "lastName": {
                                "type": "string",
                                "example": "Smith",
                                "description": "Last name, derived from the person's current UW affiliations."
                              },
                              "emailAddress": {
                                "type": "string",
                                "example": "john.smith@wisc.edu",
                                "description": "The email address this person has designated as their primary, if set.  Otherwise, their Campus Business Email, or other email derived from their current UW affiliations."
                              },
                              "officeAddress": {
                                "type": "string",
                                "description": "Primary work-related address derived from the person's current UW affiliations.  May or may not be a fully-formed street address.",
                                "example": "1210 W. Dayton Street Madison, WI 53706-1613",
                                "nullable": true
                              },
                              "officePhoneNumber": {
                                "type": "string",
                                "example": "608-262-1204",
                                "description": "Primary work-related phone number derived from the person's current UW affiliations.  May or may not be associated with the officeAddress.",
                                "nullable": true
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          },
                          "relationships": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "type": "object",
                            "required": [
                              "identifiers",
                              "jobs",
                              "names",
                              "wiscard"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "properties": {
                              "identifiers": {
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
                                  },
                                  "data": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "example": "sampleType"
                                        },
                                        "id": {
                                          "type": "string",
                                          "example": "sampleId"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
                              },
                              "jobs": {
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
                                  },
                                  "data": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "example": "sampleType"
                                        },
                                        "id": {
                                          "type": "string",
                                          "example": "sampleId"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
                              },
                              "names": {
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
                                  },
                                  "data": {
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "type": {
                                          "type": "string",
                                          "example": "sampleType"
                                        },
                                        "id": {
                                          "type": "string",
                                          "example": "sampleId"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
                              },
                              "wiscard": {
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
                                  },
                                  "data": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          },
                          "links": {
                            "description": "The link to access a resource itself",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "type": "object",
                            "properties": {
                              "self": {
                                "type": "string",
                                "example": "https://api.wisc.edu/link/to/self"
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          },
                          "meta": {
                            "type": "object",
                            "properties": {
                              "ferpa": {
                                "type": "boolean",
                                "example": false,
                                "description": "Indicates whether or not a student has elected FERPA coverage on one or more of their attributes. Please see https://registrar.wisc.edu/ferpa/ for more details about how to handle FERPA data."
                              },
                              "ferpaAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                },
                                "description": "Not currently used."
                              },
                              "privateAttributes": {
                                "type": "array",
                                "items": {
                                  "type": "string"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                },
                                "description": "Not currently used."
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    },
                    "links": {
                      "description": "Self and pagination links",
                      "allOf": [
                        {
                          "description": "The link to access a resource itself",
                          "type": "object",
                          "properties": {
                            "self": {
                              "type": "string",
                              "example": "https://api.wisc.edu/link/to/self"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          }
                        },
                        {
                          "description": "The links associated with a paginated collection",
                          "type": "object",
                          "properties": {
                            "self": {
                              "description": "The current page of data",
                              "type": "string",
                              "format": "uri-reference",
                              "example": "https://api.wisc.edu/people?page[after]=6"
                            },
                            "prev": {
                              "description": "The previous page of data",
                              "type": "string",
                              "format": "uri-reference",
                              "example": "https://api.wisc.edu/people?page[before]=7"
                            },
                            "next": {
                              "description": "The next page of data",
                              "type": "string",
                              "format": "uri-reference",
                              "example": "https://api.wisc.edu/people?page[after]=8"
                            },
                            "first": {
                              "description": "Available when using offset pagination. The first page of data",
                              "type": "string",
                              "format": "uri-reference",
                              "example": "https://api.wisc.edu/people?page[number]=1"
                            },
                            "last": {
                              "description": "Available when using offset pagination. The last page of data",
                              "type": "string",
                              "format": "uri-reference",
                              "example": "https://api.wisc.edu/people?page[number]=10"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "paging": {
                          "type": "object",
                          "properties": {
                            "totalPeople": {
                              "type": "integer",
                              "example": 100,
                              "description": "The total number of people available for the collection"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          },
                          "example": 100,
                          "description": "The total number of people in the collection"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    },
                    "included": {
                      "description": "Included related resources",
                      "type": "array",
                      "items": {
                        "description": "A generic resource object",
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "example": "sampleType"
                          },
                          "id": {
                            "type": "string",
                            "example": "sampleId"
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "attribute1": {
                                "type": "string",
                                "example": "sampleStringAttribute"
                              },
                              "attribute2": {
                                "type": "number",
                                "example": 123
                              }
                            }
                          },
                          "relationships": {
                            "type": "object",
                            "properties": {
                              "relatedResource": {
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
                                  },
                                  "data": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
                              }
                            }
                          },
                          "links": {
                            "description": "The link to access a resource itself",
                            "type": "object",
                            "properties": {
                              "self": {
                                "type": "string",
                                "example": "https://api.wisc.edu/link/to/self"
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    }
                  }
                },
                "examples": {
                  "example-people": {
                    "value": {
                      "data": [
                        {
                          "attributes": {
                            "emailAddress": "john.smith@wisc.edu",
                            "firstName": "John",
                            "lastName": "Smith",
                            "officeAddress": "1210 W Dayton St, Madison, WI 53706",
                            "officePhoneNumber": "608-555-1234"
                          },
                          "id": "100",
                          "links": {
                            "self": "https://api.wisc.edu/people/100"
                          },
                          "meta": {
                            "ferpa": false,
                            "ferpaAttributes": [],
                            "privateAttributes": []
                          },
                          "relationships": {
                            "identifiers": {
                              "data": [
                                {
                                  "id": "100",
                                  "type": "identifiers"
                                }
                              ],
                              "links": {
                                "related": "https://api.wisc.edu/people/100/identifiers"
                              }
                            },
                            "jobs": {
                              "data": [
                                {
                                  "id": "100",
                                  "type": "jobs"
                                }
                              ],
                              "links": {
                                "related": "https://api.wisc.edu/people/100/jobs"
                              }
                            },
                            "names": {
                              "data": [
                                {
                                  "id": "100",
                                  "type": "names"
                                }
                              ],
                              "links": {
                                "related": "https://api.wisc.edu/people/100/names"
                              }
                            },
                            "wiscard": {
                              "data": {
                                "id": "100",
                                "type": "wiscard"
                              },
                              "links": {
                                "related": "https://api.wisc.edu/people/100/wiscard"
                              }
                            }
                          },
                          "type": "people"
                        }
                      ],
                      "links": {
                        "self": "https://api.wisc.edu/people"
                      }
                    }
                  }
                }
              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
            }
          },
          "400": {
            "description": "A bad request.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    }
                  }
                },
                "examples": {
                  "application/vnd.api+json": {
                    "value": {
                      "errors": [
                        {
                          "id": null,
                          "links": {},
                          "meta": {},
                          "source": {},
                          "status": 400,
                          "title": "Bad Request",
                          "detail": "Invalid properties in query parameters - resource type 'people' has no attribute 'invalid'."
                        }
                      ]
                    }
                  }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
            }
          },
          "401": {
            "description": "Incorrect or expired OAuth token.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "unauthorized-response": {
                    "value": {
                      "errors": [
                        {
                          "status": 401,
                          "title": "Unauthorized",
                          "detail": "Invalid OAuth authentication - InvalidAccessToken"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "406": {
            "description": "Servers respond with a 406 Not Acceptable status code if a request’s Accept header contains the JSON:API media type and all instances of that media type are modified with media type parameters.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-acceptable-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 406,
                          "title": "Not Acceptable",
                          "detail": "Request's Accept header contained the JSON:API media type and all instances of that media type were modified with media type parameters."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The API quota has been exceeded.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 429,
                          "title": "Too Many Requests",
                          "detail": "The quota has been exceeded."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 500,
                          "title": "Internal Server Error",
                          "detail": "Something went wrong in the server-side."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/people/{id}": {
      "get": {
        "description": "Get a person. It is not recommended to manually build this URL or other URLs that contain path parameters, for example, by using concatenation. Instead, use the fully-qualified links returned in other resources to use this resource and other \"Get By ID\" resources.",
        "summary": "Get a person.",
        "operationId": "get_person",
        "tags": [
          "people"
        ],
        "parameters": [
          {
            "name": "id",
            "description": "ID of a person. This parameter should not be manually built/concatenated, but instead be used by following the fully-formed links returned in an API response. To get a person by an ID, use query parameters to search by a specific identifier. Example: /people?filter[identifiers.name]=netId&filter[identifiers.value]=bbadger",
            "in": "path",
            "example": "700",
            "required": true,
            "schema": {
              "type": "string",
              "description": "An ephemeral identifier used only in the Person API to adhere to the [JSON:API specification](https://jsonapi.org/format/#document-resource-object-identification). This ID may change if a person is split into two people or two people are merged into one person. This ID is used for paginating results or following other links returned in the API response. This ID should not be stored in a consuming system. Concatenating parts of the URL to form a link is discouraged. Instead, use the fully-formed links returned in an API response.",
              "example": "12345"
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "[include related resources](https://jsonapi.org/format/#fetching-includes). The resources to include need to be direct relationships. Nested relationships are not supported. For example, `include=jobs,identifiers` is supported but `include=person.jobs` is not supported.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "Specify the list of fields you would like to return for each resource type.  For example, `fields[people]=firstName,lastName` will just return the names for people.  If you are including related resources with 'includes' you can also specify fields on those resources as well.  For example, `includes=jobs&fields[people]=jobs&fields[jobs]=title` will just return titles for jobs.  See [Sparse Fieldsets](https://jsonapi.org/format/#fetching-sparse-fieldsets) for more details.",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string",
                  "example": "people"
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A single person",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "links"
                  ],
                  "properties": {
                    "data": {
                      "description": "A person",
                      "type": "object",
                      "required": [
                        "type",
                        "id",
                        "attributes",
                        "relationships",
                        "links",
                        "meta"
                      ],
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "people"
                        },
                        "id": {
                          "type": "string",
                          "description": "An ephemeral identifier used only in the Person API to adhere to the [JSON:API specification](https://jsonapi.org/format/#document-resource-object-identification). This ID may change if a person is split into two people or two people are merged into one person. This ID is used for paginating results or following other links returned in the API response. This ID should not be stored in a consuming system. Concatenating parts of the URL to form a link is discouraged. Instead, use the fully-formed links returned in an API response.",
                          "example": "12345"
                        },
                        "attributes": {
                          "type": "object",
                          "required": [
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "firstName",
                            "lastName",
                            "emailAddress",
                            "officeAddress",
                            "officePhoneNumber"
                          ],
                          "properties": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "firstName": {
                              "type": "string",
                              "example": "John",
                              "description": "First name, derived from the person's current UW affiliations."
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "lastName": {
                              "type": "string",
                              "example": "Smith",
                              "description": "Last name, derived from the person's current UW affiliations."
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "emailAddress": {
                              "type": "string",
                              "example": "john.smith@wisc.edu",
                              "description": "The email address this person has designated as their primary, if set.  Otherwise, their Campus Business Email, or other email derived from their current UW affiliations."
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "officeAddress": {
                              "type": "string",
                              "description": "Primary work-related address derived from the person's current UW affiliations.  May or may not be a fully-formed street address.",
                              "example": "1210 W. Dayton Street Madison, WI 53706-1613",
                              "nullable": true
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "officePhoneNumber": {
                              "type": "string",
                              "example": "608-262-1204",
                              "description": "Primary work-related phone number derived from the person's current UW affiliations.  May or may not be associated with the officeAddress.",
                              "nullable": true
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          }
                        },
                        "relationships": {
                          "type": "object",
                          "required": [
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "identifiers",
                            "jobs",
                            "names",
                            "wiscard"
                          ],
                          "properties": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "identifiers": {
                              "description": "A generic relationship object",
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "properties": {
                                    "related": {
                                      "type": "string",
                                      "example": "https://api.wisc.edu/link/to/related/object"
                                    }
                                  }
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "jobs": {
                              "description": "A generic relationship object",
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "properties": {
                                    "related": {
                                      "type": "string",
                                      "example": "https://api.wisc.edu/link/to/related/object"
                                    }
                                  }
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "names": {
                              "description": "A generic relationship object",
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "properties": {
                                    "related": {
                                      "type": "string",
                                      "example": "https://api.wisc.edu/link/to/related/object"
                                    }
                                  }
                                },
                                "data": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "wiscard": {
                              "description": "A generic relationship object",
                              "type": "object",
                              "properties": {
                                "links": {
                                  "type": "object",
                                  "properties": {
                                    "related": {
                                      "type": "string",
                                      "example": "https://api.wisc.edu/link/to/related/object"
                                    }
                                  }
                                },
                                "data": {
                                  "type": "object",
                                  "properties": {
                                    "type": {
                                      "type": "string",
                                      "example": "sampleType"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    },
                                    "id": {
                                      "type": "string",
                                      "example": "sampleId"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          }
                        },
                        "links": {
                          "description": "The link to access a resource itself",
                          "type": "object",
                          "properties": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "self": {
                              "type": "string",
                              "example": "https://api.wisc.edu/link/to/self"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          }
                        },
                        "meta": {
                          "type": "object",
                          "properties": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            "ferpa": {
                              "type": "boolean",
                              "example": false,
                              "description": "Indicates whether or not a student has elected FERPA coverage on one or more of their attributes. Please see https://registrar.wisc.edu/ferpa/ for more details about how to handle FERPA data."
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "ferpaAttributes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Not currently used."
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            },
                            "privateAttributes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "Not currently used."
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    },
                    "links": {
                      "description": "The link to access a resource itself",
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "example": "https://api.wisc.edu/link/to/self"
                        }
                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    },
                    "included": {
                      "description": "Included related resources",
                      "type": "array",
                      "items": {
                        "description": "A generic resource object",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string",
                            "example": "sampleType"
                          },
                          "id": {
                            "type": "string",
                            "example": "sampleId"
                          },
                          "attributes": {
                            "type": "object",
                            "properties": {
                              "attribute1": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "type": "string",
                                "example": "sampleStringAttribute"
                              },
                              "attribute2": {
                                "type": "number",
                                "example": 123
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          },
                          "relationships": {
                            "type": "object",
                            "properties": {
                              "relatedResource": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
                                    }
                                  },
                                  "data": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
                              }
                            }
                          },
                          "links": {
                            "description": "The link to access a resource itself",
                            "type": "object",
                            "properties": {
                              "self": {
                                "type": "string",
                                "example": "https://api.wisc.edu/link/to/self"
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "example-people": {
                    "value": {
                      "data": {
                        "attributes": {
                          "emailAddress": "john.smith@wisc.edu",
                          "firstName": "John",
                          "lastName": "Smith",
                          "officeAddress": "1210 W Dayton St, Madison, WI 53706",
                          "officePhoneNumber": "608-555-1234"
                        },
                        "id": "100",
                        "links": {
                          "self": "https://api.wisc.edu/people/100"
                        },
                        "meta": {
                          "ferpa": false
                        },
                        "relationships": {
                          "identifiers": {
                            "data": [
                              {
                                "id": "100",
                                "type": "identifiers"
                              }
                            ],
                            "links": {
                              "related": "https://api.wisc.edu/people/100/identifiers"
                            }
                          },
                          "jobs": {
                            "data": [
                              {
                                "id": "100",
                                "type": "jobs"
                              }
                            ],
                            "links": {
                              "related": "https://api.wisc.edu/people/100/jobs"
                            }
                          },
                          "names": {
                            "data": [
                              {
                                "id": "100",
                                "type": "names"
                              }
                            ],
                            "links": {
                              "related": "https://api.wisc.edu/people/100/names"
                            }
                          },
                          "wiscard": {
                            "data": {
                              "id": "100",
                              "type": "wiscard"
                            },
                            "links": {
                              "related": "https://api.wisc.edu/people/100/wiscard"
                            }
                          }
                        },
                        "type": "people"
                      },
                      "links": {
                        "self": "https://api.wisc.edu/people"
                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                }
1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724
              }
            }
          },
          "400": {
            "description": "A bad request.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/vnd.api+json": {
                    "value": {
                      "errors": [
                        {
                          "id": null,
                          "links": {},
                          "meta": {},
                          "source": {},
                          "status": 400,
                          "title": "Bad Request",
                          "detail": "Invalid properties in query parameters - resource type 'people' has no attribute 'invalid'."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or expired OAuth token.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "unauthorized-response": {
                    "value": {
                      "errors": [
                        {
                          "status": 401,
                          "title": "Unauthorized",
                          "detail": "Invalid OAuth authentication - InvalidAccessToken"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Unable to find the specified record",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 404,
                          "title": "Not Found",
                          "detail": "Requested resource not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "406": {
            "description": "Servers respond with a 406 Not Acceptable status code if a request’s Accept header contains the JSON:API media type and all instances of that media type are modified with media type parameters.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-acceptable-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 406,
                          "title": "Not Acceptable",
                          "detail": "Request's Accept header contained the JSON:API media type and all instances of that media type were modified with media type parameters."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The API quota has been exceeded.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 429,
                          "title": "Too Many Requests",
                          "detail": "The quota has been exceeded."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 500,
                          "title": "Internal Server Error",
                          "detail": "Something went wrong in the server-side."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/people/{id}/identifiers": {
      "get": {
        "description": "Get identifiers for a person. This endpoint returns all current and past identifiers for the person..",
        "summary": "Get identifiers.",
        "operationId": "get_person_identifiers",
        "tags": [
          "identifiers"
        ],
        "parameters": [
          {
            "name": "id",
            "description": "ID of a person. This parameter should not be manually built/concatenated, but instead be used by following the fully-formed links returned in an API response. To get a person by an ID, use query parameters to search by a specific identifier. Example: /people?filter[identifiers.name]=netId&filter[identifiers.value]=bbadger",
            "in": "path",
            "example": "700",
            "required": true,
            "schema": {
              "type": "string",
              "description": "An ephemeral identifier used only in the Person API to adhere to the [JSON:API specification](https://jsonapi.org/format/#document-resource-object-identification). This ID may change if a person is split into two people or two people are merged into one person. This ID is used for paginating results or following other links returned in the API response. This ID should not be stored in a consuming system. Concatenating parts of the URL to form a link is discouraged. Instead, use the fully-formed links returned in an API response.",
              "example": "12345"
            }
          },
          {
            "name": "fields",
            "in": "query",
            "description": "Specify the list of fields you would like to return for each resource type.  For example, `fields[people]=firstName,lastName` will just return the names for people.  If you are including related resources with 'includes' you can also specify fields on those resources as well.  For example, `includes=jobs&fields[people]=jobs&fields[jobs]=title` will just return titles for jobs.  See [Sparse Fieldsets](https://jsonapi.org/format/#fetching-sparse-fieldsets) for more details.",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "type": {
                  "type": "string",
                  "example": "people"
                }
              }
            }
          },
          {
            "name": "filter",
            "in": "query",
            "description": "Filter results of query using the [filter query parameter family](https://jsonapi.org/recommendations/#filtering). Refer to the [Person API Documentation](/person-api/filter-query-parameter) for more information about the `filter` query param.",
            "required": false,
            "style": "deepObject",
            "explode": true,
            "schema": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "attribute": {
                  "type": "string",
                  "example": "firstName"
                }
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A collection of identifiers.  These may be: `pvi` (Publicly Visible Identifier, a unique value from DoIT Identity and Access Management), `netId` (username for the NetID Login Service), `photoId` (from a person's Wiscard), or `emplId` (from Human Resources System - HRS - for employees, or from Student Information System - SIS -for students). Identifiers also include `library patron Id`, `campusId` (from the Student Information System -SIS), and `predicted photo Id` as documented in this [KB article](https://kb.wisc.edu/iam/page.php?id=95753#toc12).",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data",
                    "links"
                  ],
                  "properties": {
                    "data": {
                      "description": "A collection of identifiers",
                      "type": "array",
                      "items": {
                        "description": "An identifier",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        "type": "object",
                        "required": [
                          "type",
                          "id",
                          "attributes",
                          "relationships"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        ],
                        "properties": {
                          "type": {
                            "type": "string",
                            "example": "identifiers"
                          },
                          "id": {
                            "type": "string",
                            "example": "12345",
                            "description": "Ephemeral ID used to adhere to the JSON:API specification. This ID should not be stored."
                          },
                          "attributes": {
                            "type": "object",
                            "required": [
                              "name",
                              "source",
                              "value",
                              "current"
                            ],
                            "properties": {
                              "name": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "type": "string",
                                "example": "pvi",
                                "description": "The name of this identifier. We currently support pvi, netId, emplId, libraryPatronId, campusId, predictedPhotoId, and photoId."
                              },
                              "source": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "type": "string",
                                "example": "IAM",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "enum": [
                                  "IAM",
                                  "HRS",
                                  "SIS",
                                  "LIBRARY",
                                  "WISCARD"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                ],
                                "description": "The source of this identifier."
                              },
                              "value": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "type": "string",
                                "example": "UW123A456"
                              },
                              "current": {
                                "description": "Property that indicates if this identifier is currently used.",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "type": "boolean",
                                "example": true
                              }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          },
                          "relationships": {
                            "type": "object",
                            "properties": {
                              "person": {
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                "description": "A generic relationship object",
                                "type": "object",
                                "properties": {
                                  "links": {
                                    "type": "object",
                                    "properties": {
                                      "related": {
                                        "type": "string",
                                        "example": "https://api.wisc.edu/link/to/related/object"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
                                  },
                                  "data": {
                                    "type": "object",
                                    "properties": {
                                      "type": {
                                        "type": "string",
                                        "example": "sampleType"
                                      },
                                      "id": {
                                        "type": "string",
                                        "example": "sampleId"
                                      }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                                }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                            }
                          }
                        }
                      }
                    },
                    "links": {
                      "description": "The link to access a resource itself",
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "example": "https://api.wisc.edu/link/to/self"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    }
                  }
                },
                "examples": {
                  "example-identifiers-current": {
                    "value": {
                      "data": [
                        {
                          "attributes": {
                            "name": "pvi",
                            "source": "IAM",
                            "value": "UW123A456",
                            "current": true
                          },
                          "id": "100",
                          "relationships": {
                            "person": {
                              "data": {
                                "id": "100",
                                "type": "people"
                              },
                              "links": {
                                "related": "https://api.wisc.edu/people/100"
                              }
                            }
                          },
                          "type": "identifiers"
                        }
                      ],
                      "links": {
                        "self": "https://api.wisc.edu/people/100/identifiers"
                      }
                    }
                  },
                  "example-identifier-historical": {
                    "value": {
                      "data": [
                        {
                          "attributes": {
                            "name": "pvi",
                            "source": "IAM",
                            "value": "UW123A123",
                            "current": false
                          },
                          "id": "100",
                          "relationships": {
                            "person": {
                              "data": {
                                "id": "100",
                                "type": "people"
                              },
                              "links": {
                                "related": "https://api.wisc.edu/people/100"
                              }
                            }
                          },
                          "type": "identifiers"
                        }
                      ],
                      "links": {
                        "self": "https://api.wisc.edu/people/100/identifiers"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "A bad request.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "application/vnd.api+json": {
                    "value": {
                      "errors": [
                        {
                          "id": null,
                          "links": {},
                          "meta": {},
                          "source": {},
                          "status": 400,
                          "title": "Bad Request",
                          "detail": "Invalid properties in query parameters - resource type 'people' has no attribute 'invalid'."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Incorrect or expired OAuth token.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "unauthorized-response": {
                    "value": {
                      "errors": [
                        {
                          "status": 401,
                          "title": "Unauthorized",
                          "detail": "Invalid OAuth authentication - InvalidAccessToken"
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                        }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                    }
Rebecca Wheeler's avatar
Rebecca Wheeler committed
                }
              }
            }
          },
          "404": {
            "description": "Unable to find the specified record",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 404,
                          "title": "Not Found",
                          "detail": "Requested resource not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "406": {
            "description": "Servers respond with a 406 Not Acceptable status code if a request’s Accept header contains the JSON:API media type and all instances of that media type are modified with media type parameters.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-acceptable-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 406,
                          "title": "Not Acceptable",
                          "detail": "Request's Accept header contained the JSON:API media type and all instances of that media type were modified with media type parameters."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The API quota has been exceeded.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
                          },
                          "source": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "not-found-example": {
                    "value": {
                      "errors": [
                        {
                          "status": 429,
                          "title": "Too Many Requests",
                          "detail": "The quota has been exceeded."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An unexpected error.",
            "content": {
              "application/vnd.api+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "description": "An error",
                        "type": "object",
                        "properties": {
                          "status": {
                            "type": "integer",
                            "example": 400
                          },
                          "title": {
                            "type": "string",
                            "example": "Error title"
                          },
                          "detail": {
                            "type": "string",
                            "example": "Additional details about the error"
                          },
                          "links": {
                            "type": "object"
                          },
                          "meta": {
                            "type": "object"
Loading
Loading full blame...