Requests
Last updated
Last updated
The Found Hero API allows you to programmatically manage your requests. A location is a lost item request where a guest claim that he lost an item in a specific location
GET
https://api.joinfoundhero.com/v1/locations/:lid/requests/:id
Retrieves the details of a request that has previously been created. Supply lid
that is the unique ID of location and id
that is the id of the request
Name | Type | Description |
---|---|---|
GET
https://api.joinfoundhero.com/v1/locations/:lid/requests
Retrieve all requests created previously. By default, this method returns a set of top 10 requests.
This method also supports pagination. You can use limit
and page
query parameters to control pagination.
PUT
https://api.joinfoundhero.com/v1/locations/:lid/requests/:id/update-status
Using this endpoint you can accept/reject a request by sending a body parameters type
.
POST
https://api.joinfoundhero.com/v1/locations/:lid/requests
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Status
INCOMPLETE
PENDING
MATCHED
REJECTED
lid
string
The unique location ID
id
string
The unique request ID
lid
string
The unique location ID
page
integer
The current page number. the default value is 1
limit
integer
the number of results per page. The value must be between 10
and 100
. The default value is 10
.
id
string
The unique request ID
lid
string
The unique location ID
type
string
reject
or accept
lid
string
The unique location ID
proof
string
Describe why this item is yours
owner
object
an object containing : firstName
lastName
email
phone
checkoutDate
string
Request lost date
lostPlace
string
Request last known place
description
string
Request description