Request Options
List all request options.
Pagination
Pagination is available for this request. Please see the section on using pagination for more details.
Available Filters
These are the filters that can be used to specific the data to return. Please see the section on using filters for more details.
type
key
value
requestable_type
requestable_id
Available Sorts
These are the sorts that can be used order the returned data. Please see the section on using sorting for more details.
type
key
value
API key passed in the Authorization header. Format: <api-key>
Filter results by type.
Filter results by key.
Filter results by value.
Filter results by requestable_type.
Filter results by requestable_id.
Page number for pagination.
1Number of results per page.
Successful response
Unauthenticated
Unauthorized
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/request-options HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": [
{
"id": 1,
"type": "example_type",
"key": "example_key",
"value": "example_value",
"requestable_type": "example_requestable_type",
"requestable_id": 1,
"configurable": "example_configurable",
"locked": "example_locked",
"required": "example_required",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"alias": "example_alias"
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://api.example.com/api/v1/request-options",
"per_page": 25,
"to": 1,
"total": 1
},
"links": {
"first": "https://api.example.com/api/v1/request-options?page=1",
"last": "https://api.example.com/api/v1/request-options?page=1",
"prev": null,
"next": null
}
}Create a new request option.
Validation Rules
These are the basic validation rules for the request. More detailed validation may apply depending on the data being sent. Please see the response for any extra requirements
type
string
☑
key
string
☑
value
string
☑
requestable_type
string
☑
requestable_id
integer
☑
configurable
locked
required
API key passed in the Authorization header. Format: <api-key>
Successful response
Unauthenticated
Unauthorized
Validation Error
Too Many Requests. The rate limit for this user has been reached.
POST /api/v1/request-options HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 226
{
"type": "example_type",
"key": "example_key",
"value": "example_value",
"requestable_type": "example_requestable_type",
"requestable_id": 1,
"configurable": "example_configurable",
"locked": "example_locked",
"required": "example_required"
}{
"data": {
"id": 1,
"type": "example_type",
"key": "example_key",
"value": "example_value",
"requestable_type": "example_requestable_type",
"requestable_id": 1,
"configurable": "example_configurable",
"locked": "example_locked",
"required": "example_required",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"alias": "example_alias"
}
}Get a single request option.
Available Filters
These are the filters that can be used to specific the data to return. Please see the section on using filters for more details.
type
key
value
requestable_type
requestable_id
Available Sorts
These are the sorts that can be used order the returned data. Please see the section on using sorting for more details.
type
key
value
API key passed in the Authorization header. Format: <api-key>
The request option identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
GET /api/v1/request-options/{request_option} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"type": "example_type",
"key": "example_key",
"value": "example_value",
"requestable_type": "example_requestable_type",
"requestable_id": 1,
"configurable": "example_configurable",
"locked": "example_locked",
"required": "example_required",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"alias": "example_alias"
}
}API key passed in the Authorization header. Format: <api-key>
The request option identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Validation Error
Too Many Requests. The rate limit for this user has been reached.
PUT /api/v1/request-options/{request_option} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"type": "example_type",
"key": "example_key",
"value": "example_value"
}{
"data": {
"id": 1,
"type": "example_type",
"key": "example_key",
"value": "example_value",
"requestable_type": "example_requestable_type",
"requestable_id": 1,
"configurable": "example_configurable",
"locked": "example_locked",
"required": "example_required",
"created_at": "2025-01-15T10:30:00.000000Z",
"updated_at": "2025-01-15T10:30:00.000000Z",
"alias": "example_alias"
}
}Delete a request option.
API key passed in the Authorization header. Format: <api-key>
The request option identifier.
Successful response
Unauthenticated
Unauthorized
Not Found. The record does not exist.
Too Many Requests. The rate limit for this user has been reached.
DELETE /api/v1/request-options/{request_option} HTTP/1.1
Host: core.wearepatchworks.com
Authorization: YOUR_API_KEY
Accept: */*
{
"message": "Action completed successfully."
}Last updated
Was this helpful?