Authentication
The App Academy API version 1 uses the API Key authorization. You need the x-api-key
which you can obtain in this form.
Since the App Academy API was built for educational purposes, the following types of pagination were used:
Endpoints
About
Retrieve the logged user
get
Gets information about the logged API user's account
x-api-keystringRequiredAPI key for authorization.
GET /api/v1/about HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Movies
Each user is granted access to 6 default records that cannot be updated or deleted.
Each user can create up to 14 records, resulting in a total of 20 retrievable records.
Create a movie
post
x-api-keystringRequiredAPI key for authorization.
namestringRequiredExample: Iron Man
directorIdstringRequiredExample: f841a38b77be
releaseDatestringRequiredExample: 2008
lengthnumberOptionalExample: 126
400Bad request error response
application/json
POST /api/v1/movies HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 313
{
"name": "Iron Man",
"genres": [
{
"id": "1"
}
],
"directorId": "f841a38b77be",
"releaseDate": "2008",
"length": 126,
"topCast": [
{
"role": "Tony Stark",
"castId": "5bfb3056c5e4"
}
],
"boxOffice": {
"budget": 140,
"grossProfit": 585.8
},
"premieres": {
"czechPremiere": "2008-04-30T22:00:00+00:00",
"originalPremiere": "2008-05-01T22:00:00+00:00"
}
}
List movies
get
pagenumberOptionalThe number of the page to retrieve.
sincestringOptionalRetrieve records with dates in the provided sort parameter since this time. Default is createdAt. Allowed format YYYY-MM-DDTHH:mm:ssZ.
orderstring · enumOptionalThe order in which the records should be returned. Default is asc.
Possible values: sortstring · enumOptionalThe parameter to be used for ordering the records. Available values are createdAt, updatedAt, name, originalPremiere, czechPremiere.
Possible values: x-api-keystringRequiredAPI key for authorization.
400Bad request error response
application/json
GET /api/v1/movies HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Retrieve a movie
get
idstringRequiredID of the resource to work with.
x-api-keystringRequiredAPI key for authorization.
400Bad request error response
application/json
GET /api/v1/movies/{id} HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Update a movie
put
Updates a movie. Without partial update.
idstringRequiredID of the resource to work with.
x-api-keystringRequiredAPI key for authorization.
namestringRequiredExample: Iron Man
directorIdstringRequiredExample: f841a38b77be
releaseDatestringRequiredExample: 2008
lengthnumberOptionalExample: 126
400Bad request error response
application/json
PUT /api/v1/movies/{id} HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 313
{
"name": "Iron Man",
"genres": [
{
"id": "1"
}
],
"directorId": "f841a38b77be",
"releaseDate": "2008",
"length": 126,
"topCast": [
{
"role": "Tony Stark",
"castId": "5bfb3056c5e4"
}
],
"boxOffice": {
"budget": 140,
"grossProfit": 585.8
},
"premieres": {
"czechPremiere": "2008-04-30T22:00:00+00:00",
"originalPremiere": "2008-05-01T22:00:00+00:00"
}
}
Update a movie
patch
Updates a movie. With partial update.
idstringRequiredID of the resource to work with.
x-api-keystringRequiredAPI key for authorization.
namestringOptionalExample: Iron Man
directorIdstringOptionalExample: f841a38b77be
releaseDatestringOptionalExample: 2008
lengthnumberOptionalExample: 126
400Bad request error response
application/json
PATCH /api/v1/movies/{id} HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 313
{
"name": "Iron Man",
"genres": [
{
"id": "1"
}
],
"directorId": "f841a38b77be",
"releaseDate": "2008",
"length": 126,
"topCast": [
{
"role": "Tony Stark",
"castId": "5bfb3056c5e4"
}
],
"boxOffice": {
"budget": 140,
"grossProfit": 585.8
},
"premieres": {
"czechPremiere": "2008-04-30T22:00:00+00:00",
"originalPremiere": "2008-05-01T22:00:00+00:00"
}
}
Delete a movie
delete
idstringRequiredID of the resource to work with.
x-api-keystringRequiredAPI key for authorization.
DELETE /api/v1/movies/{id} HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
People
The query (parameter q
) has to be written in this format:
all the conditions can be grouped by operator AND
the value in each condition has to be enclosed in quotation marks
multiple conditions can be used multiple times within one query
example:
contains= "Rob" AND startsWith = "Rob" AND endsWith = "Jr."
Search people involved in movies.
get
Searches people involved in movies.
qstringOptionalThe query to search in records.
Example: contains= \"Rob\" AND startsWith = \"Rob\" AND endsWith = \"Jr.\" AND equals = \"Robert Downey Jr.\"
offsetnumberOptionalThe number of records to skip.
x-api-keystringRequiredAPI key for authorization.
400Bad request error response
application/json
GET /api/v1/people HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Organizations
List organizations involved in movies.
get
Lists organizations involved in movies.
pagenumberOptionalThe number of the page to retrieve.
x-api-keystringRequiredAPI key for authorization.
400Bad request error response
application/json
GET /api/v1/organizations HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Genres
List genres of movies.
get
x-api-keystringRequiredAPI key for authorization.
400Bad request error response
application/json
GET /api/v1/genres HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Awards
List awards that were obtained by a movie.
get
Lists awards that were obtained by a movie.
movieIdstringRequiredID of the movie to work with.
x-api-keystringRequiredAPI key for authorization.
400Bad request error response
application/json
GET /api/v1/awards/{movieId} HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Webhooks
Each user can create 1 webhook.
Attach a webhook
post
x-api-keystringRequiredAPI key for authorization.
urlstringRequiredExample: https://hook.eu1.make.com/webhookToken
400Bad request error response
application/json
POST /api/v1/webhooks HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"url": "https://hook.eu1.make.com/webhookToken",
"events": [
"create"
]
}
Detach a webhook
delete
idstringRequiredID of the resource to work with.
x-api-keystringRequiredAPI key for authorization.
DELETE /api/v1/webhooks/{id} HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Files
Retrieve a list of files/folders.
get
Retrieves a list of files/folders.
parentstringOptionalID of the folder to retrieve its content.
x-api-keystringRequiredAPI key for authorization.
GET /api/v1/files HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Download a file.
get
idstringRequiredID of the file to download.
x-api-keystringRequiredAPI key for authorization.
GET /api/v1/files/{id}/export HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Upload a file.
post
parentstringRequiredID of the folder where the file should be uploaded.
x-api-keystringRequiredAPI key for authorization.
POST /api/v1/files/import HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"file": {
"value": "binary",
"options": {
"filename": "myFile.txt"
}
}
}
Custom Fields (movie)
List custom fields.
get
x-api-keystringRequiredAPI key for authorization.
GET /api/v1/custom-fields HTTP/1.1
Host: app-academy.make.com
x-api-key: text
Accept: */*
Last updated