Set a submission forward status
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid}/submissions/{id} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '{}'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/submissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/submissions/{id}"
payload = {}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Submissions
Set a submission forward status
Top-level alias: PATCH /admin/api/submissions/. Write role required. There is no GET-one-submission route: the dispatcher sends ANY method on submissions/ to this handler, so a GET on it falls through to the 400 above.
PATCH
/
admin
/
api
/
projects
/
{pid}
/
submissions
/
{id}
Set a submission forward status
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid}/submissions/{id} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '{}'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/submissions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{pid}/submissions/{id}"
payload = {}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Path Parameters
Project id (UUID) belonging to the caller workspace.
Submission id.
Body
application/json
Setting it to sent also stamps forwarded_at; any other value leaves forwarded_at untouched.
Available options:
pending, sent, failed Response
Updated.