Whitelisted sources

List whitelist sources

get

Get a list of whitelist resources

Query parameters
offsetintegerOptional

Pagination offset

limitinteger · min: 1 · max: 100Optional

Pagination limit

orderBystringOptional

Order the results by this field, in this direction

Example: createdAt:descPattern: ^[a-zA-Z0-9\_]+(:(asc|desc))?$
Responses
200

OK

application/json
get
/whitelisted-sources
200

OK

Create whitelist

post

Create a whitelist (trusted resource)

Body

A trusted resource (e.g. email, domain, IP)

idstring · uuidRead-onlyOptional
typestring · enumRequired

Type of trusted resource

Possible values:
namestringRequired

Friendly name of trusted resource

descriptionstring | nullableOptional

Freetext description of trusted resource

trustedDaysnumber | nullableOptional

Consider this resource trusted for this duration of time since the seed has been planted

createdAtstring · date-timeRead-onlyOptional
updatedAtstring · date-timeRead-onlyOptional
createdByTypestring | nullableRead-onlyOptional
createdByIdstring | nullableRead-onlyOptional
updatedByTypestring | nullableRead-onlyOptional
updatedByIdstring | nullableRead-onlyOptional
settingsany ofRequired
or
or
or
Responses
post
/whitelisted-sources
201

Created

Get whitelist

get

Get a single whitelisted-source

Path parameters
whitelistIdstring · uuidRequired
Responses
200

OK

application/json
get
/whitelisted-sources/{whitelistId}
200

OK

Delete whitelist

delete

Delete a whitelist resource

Path parameters
whitelistIdstring · uuidRequired
Responses
delete
/whitelisted-sources/{whitelistId}
204

No Content

No content

Update whitelist

patch

Update a whitelisted-source

Path parameters
whitelistIdstring · uuidRequired
Body
statusstringOptional

Whitelisted-source description

trustedDaysnumberOptional

Number of days which this source will be whitelisted for

Responses
200

OK

application/json
patch
/whitelisted-sources/{whitelistId}
200

OK

Was this helpful?