API reference
/- Create one or more jobs from job templates
List projects
Search projects
Get project by ID
Assign staff to a project
Remove staff from a project
Create one or more jobs f...
🔐 Required role:
PROJ_C📖 Data dictionary: Project
Create jobs from job templates
Creates one or more jobs for a client from job templates. Up to 100 templates may be provided in a single request. Each entry in jobTemplates can override field-level defaults defined on the template.
Required fields:
clientId— the client for whom the jobs are being createdjobTemplates— list of job templates to instantiate (1–100 entries)jobTemplateId— the template to create a job from
Optional per-template overrides (each overrides the template default if provided):
startDate— job start datename— job nameserviceDescription— service descriptionestimationHours— estimated hoursfeeAmount— fee amountrequiredPrepayment— required prepayment amountincludeWipType— WIP billing behavior (INCLUDE_WIP,INCLUDE_WIP_IF_FINAL,DO_NOT_INCLUDE)
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/projects/create_from_template
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/projects/create_from_template
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/projects/create_from_template
curl -i -X POST \
https://api.sandbox.aiwyn.app/api/v1/projects/create_from_template \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"clientId": 420,
"jobTemplates": [
{
"jobTemplateId": 7
}
]
}'Response
[ 1001, 1002 ]