Accept a package request
curl --request POST \
--url https://workspace.passionfroot.me/api/creators/v1/requests/{requestId}/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoInvoice": true,
"daysUntilInvoiceDue": 30,
"requestAssets": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({autoInvoice: true, daysUntilInvoiceDue: 30, requestAssets: true})
};
fetch('https://workspace.passionfroot.me/api/creators/v1/requests/{requestId}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://workspace.passionfroot.me/api/creators/v1/requests/{requestId}/accept"
payload = {
"autoInvoice": True,
"daysUntilInvoiceDue": 30,
"requestAssets": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"requestId": "req_abc",
"collaborationId": "collab_abc",
"status": "accepted"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Too many requests, please try again later."
}{
"error": "<string>"
}Requests
Accept a package request
Accepts the brand’s package request as-is and books the requested dates. An empty body is valid. Naturally idempotent.
POST
/
requests
/
{requestId}
/
accept
Accept a package request
curl --request POST \
--url https://workspace.passionfroot.me/api/creators/v1/requests/{requestId}/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoInvoice": true,
"daysUntilInvoiceDue": 30,
"requestAssets": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({autoInvoice: true, daysUntilInvoiceDue: 30, requestAssets: true})
};
fetch('https://workspace.passionfroot.me/api/creators/v1/requests/{requestId}/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://workspace.passionfroot.me/api/creators/v1/requests/{requestId}/accept"
payload = {
"autoInvoice": True,
"daysUntilInvoiceDue": 30,
"requestAssets": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"requestId": "req_abc",
"collaborationId": "collab_abc",
"status": "accepted"
}
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "Too many requests, please try again later."
}{
"error": "<string>"
}Authorizations
Create an API key from Settings → API in an approved Creator workspace.
Path Parameters
Body
application/json
Response
The request's current state.
Show child attributes
Show child attributes