Answer a request
PATCH
/api/v1/sites/{id}/requests/{request}
const url = 'http://localhost:3000/api/v1/sites/example/requests/example';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"status":"approved"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/v1/sites/example/requests/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "status": "approved" }'An access request approved gets a link of their own for 90 days (or until the portal closes), emailed when the organization’s email works, and in url to copy. A request section’s ask (asset, review, question) approved is marked done, and denied dismissed; it makes no link.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Portal id
request
required
string
Request id
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
status
required
string
Responses
Section titled “Responses”The request, and whether it was emailed
Media typeapplication/json
object
data
required
object
id
required
string format: uuid
email
required
string
name
required
string | null
note
required
string | null
status
required
string
kind
required
Access: to get in; asset, review or question: asked from a request section
string
page
required
The page a request section asked from
string | null
section
required
The request section, by id
string | null
decidedBy
required
string | null
createdAt
required
string format: date-time
url
required
For an approved request: their own link, to copy
string | null
emailed
required
boolean
Example
{ "data": { "status": "pending", "kind": "access" }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}