IdentityPersonPROPersonIdCard

PersonIdCardService

More information: https://it.byu.edu
Contact Info: api@byu.edu

Base URL: /domains/legacy/identity/person/PRO/personidcard

Version: v1

Default response content-types: application/json, application/xml
Schemes: https

Summary

Path Operation Description
/documentation GET

service definition

/{person_id}* GET

Get ID cards

PUT

Update a person's ID card

Paths

service definition

GET /documentation

service definition

Uses default content-types: application/json application/xml

200 OK

Success

Get ID cards

GET /{person_id}*

Tags: PersonIdCardService

Get ID cards

person_id

string ->

path string

Uses default content-types: application/json application/xml

200 OK

Service request is OK and a response has been generated.

Example for application/json
{
"ID Card Service": {
"request": {
"attributes": "",
"method": "GET",
"resource": "/json/123456789",
"status": "200"
}
,
"resource": {
"URI": "/[personid|netid]",
"attributes": {
"lost_stolen": {
"default": "false",
"description": "A boolean indicator. If true indicates that the ID Card has been lost or stolen",
"required": false
}
,
"unlisted": {
"default": "false",
"description": "A boolean indicator. If true indicates the desire make the ID Card unlisted (unavailable) except to those who have a legitimate need to know",
"required": false
}
}
,
"examples": [
"/",
"/123456789",
"/byu999"
]
,
"identifiers": [
{
"personid": {
"default": "Identifier of authenticated individual",
"description": "Unique identifier of an individual",
"required": false
}
},
{
"netid": {
"description": "Online account or network identifier of an individual",
"required": false
}
}
]
,
"methods": {
"adaptations": [
{
"PUT": [
"Tunnel through a GET with attributes in the query string name value pairs",
"Tunnel through a POST with attributes in POST content name values pairs"
]
}
]
,
"options": [
"GET",
"PUT"
]
}
}
,
"response": {
"ID_card_name": "John Albert Doe",
"ID_card_role": "Student",
"beard": false,
"byu_id": "98-765-4321",
"card_status": "",
"dtf": false,
"expiration_date": "01-SEP-2019",
"id_card_roles": {
"current": {
"primary_role": "Student",
"secondary_role": "full time student junior"
}
,
"when_issued": {
"primary_role": "Student",
"secondary_role": "full time student sophomore"
}
}
,
"issue_number": "02",
"lost_stolen": false,
"photo_URL": "https://y.byu.edu/ry/ae/prod/person_new/cgi/personPhoto.cgi/410273232",
"relationships": [
{
"affiliation": "",
"deceased": "",
"employee": "ADM/FT/TRM",
"name": "Jack Doe",
"person_id": "111222333",
"student": "Former Student",
"type": "Child of:"
}
]
,
"unlisted": false,
"warnings": [
"Non-Directory information is accessible only to yourself and to university personnel with a legitimate need to know"
]
}
}
}
400 Bad Request

There appears to be a syntax error in the composition of the service request. The response structure may contain information about the error. If the base URI or service request URI is invalid, any response will come as an HTTP response.

401 Unauthorized

Failure to authenticate

403 Forbidden

The user does not have access to the resource.

404 Not Found

The target resource can not be found for the provided resource identifiers.

500 Internal Server Error

An error occurred generating the response to the service request. This is strictly a server error and not an application error.

Update a person's ID card

PUT /{person_id}*

Tags: PersonIdCardService

Update a person's ID card

person_id

string ->

path string
unlisted

Unlist card from public directory

query boolean
lost_stolen

Report card as lost or stolen

query boolean

Uses default content-types: application/json application/xml

200 OK

Service request is OK and a response has been generated.

400 Bad Request

There appears to be a syntax error in the composition of the service request. The response structure may contain information about the error. If the base URI or service request URI is invalid, any response will come as an HTTP response.

401 Unauthorized

Failure to authenticate

403 Forbidden

The user does not have access to the resource.

404 Not Found

The target resource can not be found for the provided resource identifiers.

405 Method Not Allowed

The service method is not supported by the service.

409 Conflict

A conflict has occurred. The response structure may contain information about the conflict.

500 Internal Server Error

An error occurred generating the response to the service request. This is strictly a server error and not an application error.

Schema definitions

documentation: object

WebService: object
name: string
operations: operations
errors: errors
httpStatusCodes: httpStatusCodes

errors: object[]

object
code: integer
name: string
message: string
httpStatusCode: integer

httpStatusCodes: object[]

object
code: integer
message: string

id_card_roles: object

current: object
primary_role: string
secondary_role: string
when_issued: object
primary_role: string
secondary_role: string

idCardService: object

ID Card Service: object
resource: resource
request: request
response: response

operations: object[]

object
name: string
description: string
method: string
path: string
path_identifiers: object[]
object
name: string
type: string
format: string
query_attributes: object[]
object
name: string
type: string
format: string
required: string

relationships: object[]

object
type: string
name: string
person_id: string
deceased: string
employee: string
student: string
affiliation: string

request: object

method: string
resource: string
attributes: string
status: string

resource: object

methods: object
options: string[]
string
adaptations: object[]
object
PUT: string[]
string
URI: string
examples: string[]
string
identifiers: object[]
object
personid: object
description: string
required: boolean
default: string
netid: object
description: string
required: boolean
attributes: object
unlisted: object
description: string
required: boolean
default: string
lost_stolen: object
description: string
required: boolean
default: string

response: object

photo_URL: string
card_status: string
ID_card_name: string
ID_card_role: string
byu_id: string
issue_number: string
dtf: boolean
beard: boolean
expiration_date: string
unlisted: boolean
lost_stolen: boolean
id_card_roles: id_card_roles
relationships: relationships
warnings: warnings

warnings: string[]

string
Service Path: 
/domains/legacy/identity/person/PRO/personidcard
Domain or University API: 
/domains/D/identity/person/PRO/personidcard

Community

 

Don't see your question listed here? Ask!