Process user request
POST/seb-api/v1/user-requests/:id/action
Process a user request.
Request
Path Parameters
id stringrequired
Request ID
- application/json
Body
required
action stringrequired
Possible values: [approve
, decline
]
Action to perform on the request
adminBypassTimeframe string
Possible values: [Once
, 10m
, 1h
, 4h
, 9h
, 12h
, 24h
, 3d
, 7d
, 14d
, 30d
, 60d
, 90d
]
The timeframe for which the approval is valid
adminComment string
Admin comment on the action
Responses
- 200
- 400
- 403
- 404
- 500
Action performed on request
- application/json
- Schema
- Example (from schema)
Schema
adminBypassTimeframe string
The timeframe for which the approval is valid
adminComment string
Admin comment
createdAt date-timerequired
Request created at
deviceId stringrequired
Device unique identifier
id stringrequired
Unique identifier
reason stringrequired
reason for request
respondedBy string
Response by
responseTime date-time
Admin response time
revokedAt date-time
Admin revoke time
revokedBy string
Revoked by
revokerComment string
Revoke comment
ruleId stringrequired
Blocking rule unique identifier
status stringrequired
Request status
type stringrequired
Request type
url stringrequired
bypassing url
userAcceptedAt date-time
User accepted response at
userId stringrequired
Request unique identifier
{
"adminBypassTimeframe": 0,
"adminComment": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"deviceId": "string",
"id": "string",
"reason": "string",
"respondedBy": "string",
"responseTime": "2024-07-29T15:51:28.071Z",
"revokedAt": "2024-07-29T15:51:28.071Z",
"revokedBy": "string",
"revokerComment": "string",
"ruleId": "string",
"status": "string",
"type": "string",
"url": "string",
"userAcceptedAt": "2024-07-29T15:51:28.071Z",
"userId": "string"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
error_message string
{
"error_message": "string"
}
Forbidden
Request not found
Internal server error
Loading...