Say yes or no to the caller's pets being Pet of the Week. Yes writes pet.trezy.featureConsent/self into the caller's repo; no deletes it. Idempotent both ways.
Input
Encoding
application/jsonconsenting
boolean
Required
No description available.
Output
Encoding
application/jsonconsenting
boolean
Optional
The answer now on record. Present only on success.
error
string
Optional
No description available.
Known values:
not-authenticated, invalid-input, save-failedmessage
string
Optional
No description available.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"description": "Say yes or no to the caller's pets being Pet of the Week. Yes writes pet.trezy.featureConsent/self into the caller's repo; no deletes it. Idempotent both ways.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"consenting": {
"type": "boolean"
}
},
"required": [
"consenting"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"consenting": {
"description": "The answer now on record. Present only on success.",
"type": "boolean"
},
"error": {
"knownValues": [
"not-authenticated",
"invalid-input",
"save-failed"
],
"type": "string"
},
"message": {
"type": "string"
}
},
"required": [],
"type": "object"
}
},
"type": "procedure"
}