interface RequestData
Represents possible data to be given to an endpoint
optionalboolean appendToFormData? :
Whether to append JSON data to form data instead of payload_json
when sending files
optionalboolean auth? :
If this request needs the Authorization
header true
The authorization prefix to use for this request, useful if you use this with bearer tokens 'Bot'
optionalBodyInit | unknown body? :
The body to send to this request. If providing as BodyInit, set passThroughBody: true
optionalAgent dispatcher? :
The to use for the request.
optionalRawFile[] | undefined files? :
Files to be attached to this request
optionalRecord<string, string> headers? :
Additional headers to add to this request
optionalboolean passThroughBody? :
Whether to pass-through the body property directly to fetch()
. This only applies when files is NOT present
optionalURLSearchParams query? :
Query string parameters to append to the called endpoint
optionalstring reason? :
Reason to show in the audit logs
optionalboolean versioned? :
If this request should be versioned true