v1

latestOpenAPI 3.0.02026-08-061280285.2 KB
Placement APIs

Update a placement.

The below table describes the required input without any job engagement type

<h3>Params</h3><h3>Data Type</h3><h3>Required</h3>
jobobjectTrue
prospectobjectTrue
revenueobjectoptional
salaryobjectoptional
revenue_splitobjectoptional
contactsarrayoptional
billing_datedateTrue
bonusobjectoptional
job_start_datedateoptional
notestringoptional
track_revenueinteger (0 or 1)optional
user_idintegerTrue
custom_fieldsarrayoptional

Sample Payload

{
    "user_id": 1 (Integer),
    "placements": [
        {
            "job": {
                "id": 6 (Integer)
            },
            "prospect": {
                "id": 30 (Integer)
            },
            "revenue": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "salary": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "revenue_split": [
                {
                    "user": {
                        "id": 1 (Integer)
                    },
                    "revenue": {
                        "number": 0, (Integer)
                        "pct": 12 (Integer)
                    }
                }
            ],
            "contacts": [
                {
                    "id": 32 (Integer)
                }
            ],
            "billing_date": "2023-03-8" (String),
            "bonus": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "job_start_date": "2023-02-14", (String)
            "note": "", (String),
            "track_revenue": 0/1, (Boolean)
            "custom_fields": [
                {
                    "id": 16,
                    "value": {"currency": "USD" (String, Currency code eg. USD, GBP), "number": 600000 (float)}
                },
                {
                    "id": 17,
                    "value": {"currency": "USD" (String), "number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 19,
                    "value": {"number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 20,
                    "value": ["choice1", "choice2"] (list of strings)
                },
                {
                    "id" : 33,
                    "value" : "Random" (String)
                },
                {
                    "id" : 99,
                    "value" : [{"type": "candidate", "id": 1}]
                },
                {
                    "id" : 34,
                    "value" : [{"user_id": 1}]
                }
            ]
        }
    ]
}

The below table describes the required input based on job engagement type

1 : Job Type Contingent

<h3>Params</h3><h3>Data Type</h3><h3>Required</h3>
jobobjectTrue
prospectobjectTrue
revenueobjectoptional
salaryobjectoptional
revenue_splitobjectoptional
contactsarrayoptional
billing_datedateTrue
bonusobjectoptional
job_start_datedateoptional
notestringoptional
track_revenueinteger (0 or 1)optional
user_idintegerTrue
custom_fieldsarrayoptional

Sample Payload

{
    "user_id": 1 (Integer),
    "placements": [
        {
            "job": {
                "id": 6 (Integer)
            },
            "prospect": {
                "id": 30 (Integer)
            },
            "revenue": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "salary": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "revenue_split": [
                {
                    "user": {
                        "id": 1 (Integer)
                    },
                    "revenue": {
                        "number": 0, (Integer)
                        "pct": 12 (Integer)
                    }
                }
            ],
            "contacts": [
                {
                    "id": 32 (Integer)
                }
            ],
            "billing_date": "2023-03-8" (String),
            "bonus": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "job_start_date": "2023-02-14", (String)
            "note": "", (String),
            "track_revenue": 0/1, (Boolean)
            "custom_fields": [
                {
                    "id": 16,
                    "value": {"currency": "USD" (String, Currency code eg. USD, GBP), "number": 600000 (float)}
                },
                {
                    "id": 17,
                    "value": {"currency": "USD" (String), "number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 19,
                    "value": {"number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 20,
                    "value": ["choice1", "choice2"] (list of strings)
                },
                {
                    "id" : 33,
                    "value" : "Random" (String)
                },
                {
                    "id" : 99,
                    "value" : [{"type": "candidate", "id": 1}]
                },
                {
                    "id" : 34,
                    "value" : [{"user_id": 1}]
                }
            ]
        }
    ]
}

2 : Job Type Contract

<h3>Params</h3><h3>Data Type</h3><h3>Required</h3>
jobobjectTrue
prospectobjectTrue
revenue_splitobjectoptional
contactsarrayoptional
contract_start_datedateoptional
contract_end_datedateoptional
pay_ratedateoptional
bill_ratedateoptional
work_quantumdateoptional
bonusobjectoptional
notestringoptional
track_revenueinteger (0 or 1)optional
user_idintegerTrue
custom_fieldsarrayoptional

Sample Payload<br>

  • Allowed bill rate frequency
    1. hour
    2. day
    3. week
    4. month
  • Allowed pay rate frequency
    1. hour
    2. day
    3. week
    4. month
  • Allowed work quantum frequency
    1. day
    2. week
    3. month
  • Allowed work quantum unit
    1. hour
    2. day
    3. week
{
    "user_id": 1 (Integer),
    "placements": [
        {
            "job": {
                "id": 6 (Integer)
            },
            "prospect": {
                "id": 30 (Integer)
            },
            "revenue_split": [
                {
                    "user": {
                        "id": 1 (Integer)
                    },
                    "revenue": {
                        "number": 0, (Integer)
                        "pct": 12 (Integer)
                    }
                }
            ],
            "contacts": [
                {
                    "id": 32 (Integer)
                }
            ],
            "contract_start_date": "2023-03-8" (String),
            "contract_end_date": "2023-03-8" (String),
            "pay_rate": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
                "frequency": {
                    "name": "hour" (String)
                }
            },
            "bill_rate": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
                "frequency": {
                    "name": "hour" (String)
                }
            },
            "work_quantum": {
                "number": 1 (Integer)
                "unit": {
                    "name": "hour" (String)
                },
                "frequency": {
                    "name": "day" (String)
                },
                "is_full_time": false (Boolean)
            },
            "bonus": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "note": "", (String),
            "track_revenue": 0/1, (Boolean)
            "custom_fields": [
                {
                    "id": 16,
                    "value": {"currency": "USD" (String, Currency code eg. USD, GBP), "number": 600000 (float)}
                },
                {
                    "id": 17,
                    "value": {"currency": "USD" (String), "number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 19,
                    "value": {"number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 20,
                    "value": ["choice1", "choice2"] (list of strings)
                },
                {
                    "id" : 33,
                    "value" : "Random" (String)
                },
                {
                    "id" : 99,
                    "value" : [{"type": "candidate", "id": 1}]
                },
                {
                    "id" : 34,
                    "value" : [{"user_id": 1}]
                }
            ]
        }
    ]
}

3 : Job Type Retained

<h3>Params</h3><h3>Data Type</h3><h3>Required</h3>
jobobjectTrue
prospectobjectTrue
salaryobjectoptional
revenue_splitobjectoptional
contactsarrayoptional
billing_datedateTrue
bonusobjectoptional
job_start_datedateoptional
success_feeobjectoptional
retainerobjectoptional
notestringoptional
track_revenueinteger (0 or 1)optional
user_idintegerTrue
custom_fieldsarrayoptional

Sample Payload<br>

  • Allowed retainer frequency
    1. net
    2. hour
    3. day
    4. month
{
    "user_id": 1 (Integer),
    "placements": [
        {
            "job": {
                "id": 6 (Integer)
            },
            "prospect": {
                "id": 30 (Integer)
            },
            "salary": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "revenue_split": [
                {
                    "user": {
                        "id": 1 (Integer)
                    },
                    "revenue": {
                        "number": 0, (Integer)
                        "pct": 12 (Integer)
                    }
                }
            ],
            "contacts": [
                {
                    "id": 32 (Integer)
                }
            ],
            "billing_date": "2023-03-8" (String),
            "bonus": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "job_start_date": "2023-02-14", (String)
            "success_fee": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
            },
            "retainer": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
                "frequency": {
                    "name": "net" (String)
                }
            },
            "note": "", (String),
            "track_revenue": 0/1, (Boolean)
            "custom_fields": [
                {
                    "id": 16,
                    "value": {"currency": "USD" (String, Currency code eg. USD, GBP), "number": 600000 (float)}
                },
                {
                    "id": 17,
                    "value": {"currency": "USD" (String), "number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 19,
                    "value": {"number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 20,
                    "value": ["choice1", "choice2"] (list of strings)
                },
                {
                    "id" : 33,
                    "value" : "Random" (String)
                },
                {
                    "id" : 99,
                    "value" : [{"type": "candidate", "id": 1}]
                },
                {
                    "id" : 34,
                    "value" : [{"user_id": 1}]
                }
            ]
        }
    ]
}

4 : Job Type Temporary

<h3>Params</h3><h3>Data Type</h3><h3>Required</h3>
jobobjectTrue
prospectobjectTrue
revenue_splitobjectoptional
contactsarrayoptional
pay_ratedateoptional
bill_ratedateoptional
work_quantumdateoptional
job_start_datedateoptional
notestringoptional
track_revenueinteger (0 or 1)optional
user_idintegerTrue
custom_fieldsarrayoptional

Sample Payload

  • Allowed bill rate frequency
    1. hour
    2. day
    3. week
    4. month
  • Allowed pay rate frequency
    1. hour
    2. day
    3. week
    4. month
  • Allowed work quantum frequency
    1. day
    2. week
    3. month
  • Allowed work quantum unit
    1. hour
    2. day
    3. week
{
    "user_id": 1 (Integer),
    "placements": [
        {
            "job": {
                "id": 6 (Integer)
            },
            "prospect": {
                "id": 30 (Integer)
            },
            "revenue_split": [
                {
                    "user": {
                        "id": 1 (Integer)
                    },
                    "revenue": {
                        "number": 0, (Integer)
                        "pct": 12 (Integer)
                    }
                }
            ],
            "contacts": [
                {
                    "id": 32 (Integer)
                }
            ],
            "pay_rate": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
                "frequency": {
                    "name": "hour" (String)
                }
            },
            "bill_rate": {
                "currency": "USD", (String, Currency code eg. USD, GBP)
                "number": 77688 (Integer)
                "frequency": {
                    "name": "hour" (String)
                }
            },
            "work_quantum": {
                "number": 1 (Integer)
                "unit": {
                    "name": "hour" (String)
                },
                "frequency": {
                    "name": "hour" (String)
                }
                "is_full_time": false (Boolean)
            },
            "job_start_date": "2023-02-14", (String)
            "note": "", (String),
            "track_revenue": 0/1, (Boolean)
            "custom_fields": [
                {
                    "id": 16,
                    "value": {"currency": "USD" (String, Currency code eg. USD, GBP), "number": 600000 (float)}
                },
                {
                    "id": 17,
                    "value": {"currency": "USD" (String), "number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 19,
                    "value": {"number1": 600000 (Float), "number2": 800000 (Float)}
                },
                {
                    "id": 20,
                    "value": ["choice1", "choice2"] (list of strings)
                },
                {
                    "id" : 33,
                    "value" : "Random" (String)
                },
                {
                    "id" : 99,
                    "value" : [{"type": "candidate", "id": 1}]
                },
                {
                    "id" : 34,
                    "value" : [{"user_id": 1}]
                }
            ]
        }
    ]
}
post/api/external/placement-record/update

Headers

RF-Api-Keystring
content-typestring

Request body

{"stackTrail":"paths:/api/external/placement-record/update:post:requestBody:content:application/json:schema:properties:user_id","oasType":"schema","type":"unknown"}

Response

Auto generated using Swagger Inspector

{"stackTrail":"paths:/api/external/placement-record/update:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown","example":{"placement_id":1}}

Example response

{
  "placement_id": 1
}