Library
Add an incentive to a project
Add the published version of an available incentive program. Unpublished or deprecated incentives return 400 validation.
post/projects/{projectId}/library/incentives
Request
- Base URL: https://next-api.saturation.io/v1
- URL: https://next-api.saturation.io/v1/projects/{projectId}/library/incentives
- Auth: HTTP bearer
Path parameters
projectIdstring required
Project ID or slug.
Request body
Example request
{
"programId": "txn_8f2a1c9e",
"versionId": "txn_8f2a1c9e"
}Response
The existing project incentive.
Example response
{
"id": "txn_8f2a1c9e",
"sourceId": "txn_8f2a1c9e",
"sourceIncentiveVersionId": "txn_8f2a1c9e",
"source": {
"id": "txn_8f2a1c9e",
"currentVersion": {
"id": "txn_8f2a1c9e"
}
}
}Changes
No recorded changes to this operation across all 4 revisions of this API.