Other
Bind an approved prospect conversion
Bind an approved prospect conversion
Required scopes: prospects:read, prospects:write, applications:write
Binds the approved conversion. An unavailable Prospect returns 404 prospect_not_found with param: prospect_id; an unavailable target Job Posting returns 404 job_posting_not_found with param: job_posting_id.
Example (curl):
curl -X POST https://api.yardstick.team/v1/prospects/pro_abc123/actions/convert_to_application/bind \
-H 'Authorization: Bearer ys_sk_live_…' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: 7c3a…' \
-d '{"job_posting_id":"jp_xyz789","binding":{"preview_hash":"…","approved_action_key":"prospect.convert_to_application","approved_input_hash":"…","approved_idempotency_key":"7c3a…","resource_version_precondition":"2026-08-18T00:00:00.000Z"}}'
Example (TypeScript):
await fetch("https://api.yardstick.team/v1/prospects/pro_abc123/actions/convert_to_application/bind", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.YS_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": "7c3a…",
},
body: JSON.stringify({
job_posting_id: "jp_xyz789",
binding: {
preview_hash: "…",
approved_action_key: "prospect.convert_to_application",
approved_input_hash: "…",
approved_idempotency_key: "7c3a…",
resource_version_precondition: "2026-08-18T00:00:00.000Z",
},
}),
});
post/v1/prospects/{prospect_id}/actions/convert_to_application/bind
Request
- Base URL: https://api.yardstick.team
- URL: https://api.yardstick.team/v1/prospects/{prospect_id}/actions/convert_to_application/bind
- Auth: HTTP bearer
Headers
Idempotency-Keystring required
Required for this operation. Reuse the same key to safely retry the same request.
X-Request-Idstring
Optional caller-supplied request identifier. Values must match ^[A-Za-z0-9_-]{1,128}$; a valid value is echoed in the response X-Request-Id header, otherwise the API generates one.
Request body
Response
Success
object required
Changes
No recorded changes to this operation across all 1 revision of this API.