Trendsic Platform Service

<back to all web services

StaffApplicantHireRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/staff/applicant/hire
"use strict";
export class PmActionResponse {
    /** @param {{Success?:boolean,Message?:string,NewId?:number,ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {boolean} */
    Success;
    /** @type {string} */
    Message;
    /** @type {number} */
    NewId;
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class StaffApplicantHireRequest {
    /** @param {{StaffApplicantID?:number,ProjectID?:number,JobID?:number,PlaceholderContactID?:number,BudgetedHours?:number,EnableAppAccess?:boolean,AsCrewLead?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    StaffApplicantID;
    /** @type {number} */
    ProjectID;
    /** @type {number} */
    JobID;
    /** @type {number} */
    PlaceholderContactID;
    /** @type {number} */
    BudgetedHours;
    /** @type {boolean} */
    EnableAppAccess;
    /** @type {boolean} */
    AsCrewLead;
}

JavaScript StaffApplicantHireRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/staff/applicant/hire HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"StaffApplicantID":0,"ProjectID":0,"JobID":0,"PlaceholderContactID":0,"BudgetedHours":0,"EnableAppAccess":false,"AsCrewLead":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Success":false,"Message":"String","NewId":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}