Create Student Photo Permission
POST/students/:communityId/photo-permissions
Create a photo permission record for a student.
For a list of all photo permission types, go to Lookup - Photo Permission Type.
Request
Path Parameters
communityId uuidrequired
The unique identifier of the community member.
- application/json
Body
required
Create photo permission payload
comment stringnullablerequired
photoPermissionType objectrequired
id uuidrequired
photoPermissionGranted booleanrequired
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
Created
- application/json
- Schema
- Example (from schema)
- Successful
Schema
code stringrequired
Status Code
data object
id uuidrequired
comment stringnullablerequired
photoPermissionGranted booleanrequired
photoPermissionType objectrequired
{
"code": "OK",
"data": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"comment": "string",
"photoPermissionGranted": true,
"photoPermissionType": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"description": "string",
"code": "string"
}
}
}
{
"code": "CREATED",
"data": {
"id": "65d44722-5592-41d8-89b1-6dea990b44a2",
"comment": "Parent gives permission",
"photoPermissionGranted": true,
"photoPermissionType": {
"id": "32bd35eb-6f03-4bbc-baf5-876f7077e319",
"description": "Promotional material",
"code": "PM"
}
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1100",
"message": "Bad Request"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1101",
"message": "Unauthorized"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1102",
"message": "Forbidden"
}
]
}
Resource not found
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1103",
"message": "Not Found"
}
]
}
Unprocessable entity
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1108",
"message": "Unprocessable Entity"
}
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
errors object[]required
code stringrequired
message stringrequired
{
"errors": [
{
"code": "string",
"message": "string"
}
]
}
{
"errors": [
{
"code": "PA1109",
"message": "Internal Server Error"
}
]
}
Loading...