A request
in UKG HR Service Delivery includes the following main attributes:
An employee (the creator of the request, or the employee concerned by this request)
A creator (the employee, or a manager or HR staff user that post the request on behalf of the employee)
The response values corresponding to a particular form
. Each form
is defined and build on the administration in the administration panel and include a number of fields (Date fields, text fields,…)
This method creates a new request for a form
and an employee
POST /api/requests/
Accept: application/json
Content-Type: multipart/form-data"
X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx
The POST is in multipart/form-data” (Content-Type: multipart/form-data"
):
Parameter |
Description |
Type |
mandatory |
Exemple |
---|---|---|---|---|
employee_technical_id |
Technical employee identifier in UKG HR Service Delivery. |
|
|
employee_technical_id: XAQ678900 |
creator_technical_id |
Technical manager identifier in UKG HR Service Delivery. |
|
|
creator_technical_id: Y78GHYU |
subject |
Subject of the request |
|
|
subject: Vacances |
body |
Body of the request |
|
|
body: Voici ma demande… |
origin |
The origin of the request |
|
|
origin: EMAIL |
priority |
Priority of the request, default to |
|
|
priority: LOW |
visible_to_employee |
If true, this request will be displayed on the employee portal on the dashboard and email notifications will be sent to the employee. If false, this request is only visible for the assigned managers and email notifications will only be sent to them. |
|
|
visible_to_employee: true |
processing_date_due |
Due date of this request (can be calculated / overridden by a automatic processing rule after this call) |
|
|
processing_date_due: 2012-01-01T12:00:00+00:00 |
callback_url |
Callback URL used to notify the client application |
|
|
callback_url: https://clientapp.com/request-event/ |
form_code |
Code of the form |
|
|
form_code: “my-form-slug” |
form_field_code_1 |
Code of the first field of the form referenced by the |
|
|
start_vacation_date: 2012-01-01T12:00:00+00:00 |
… |
… |
… |
… |
… |
form_field_code_n |
Code of the last field of the form referenced by the |
|
|
comment: Bonjour,\nDemande de vacance pour février\nMerci!\nCdt |
form_field_file_code_1 |
Code of the first file field of the form referenced by the |
|
|
file_employee_vacation_status: <any_binary_file> |
… |
… |
… |
… |
… |
file_form_field_file_code_n |
Code of the last file field of the form referenced by the |
|
|
file_manager_confirmation: <any_binary_file> |
The response is encoded in the JSON format with the following parameters:
Parameter |
Description |
Type |
Exemple |
---|---|---|---|
id |
The id of the request |
|
789 |
form |
Code of the form |
|
{…} |
subject |
Subject of the request (can be set by the creator of the request or automatically generated depending on the form) |
|
What’s the company vacation policy? |
body |
Request body (html) |
|
… long body …. |
body_json |
Request body (json), if the form is a custom form |
|
… |
origin |
Origin (can be set by the creator of the request if the request is pmade by a manager) |
|
PEOPLASK |
status |
State of the request |
|
created |
custom_state |
Custom state of the request (possibly set in the processing rules) |
|
Manager validation pending |
employee |
Employee related to this request |
|
{…} |
creator |
Creator of this request (can be the employee himself, or a manager) |
|
{…} |
managers_assigned |
List of managers assigned to this request (at the time of the API call) |
|
[{…},{…},…] |
processing_date_due |
Due date of this request (can be calculated / overridden by a automatic processing rule) |
|
2012-01-01T12:00:00+00:00 |
processing_start_date |
Processing start date of this request (can be calculated / overridden by a automatic processing rule) |
|
2012-01-01T12:00:00+00:00 |
created_at |
Creation date of this request (date of the api call) |
|
2012-01-01T12:00:00+00:00 |
updated_at |
Last update of the request |
|
2012-01-01T12:00:00+00:00 |
closed_by |
The manager who closed the request if the request is closed and if known. If it has been reopened, then closed again, the last manager who closed the request is returned. |
|
{…} |
closed_at |
Last date the request has been closed |
|
2012-01-01T12:00:00+00:00 |
manager_url |
The URL of the |
|
|
employee_url |
The URL of the |
|
|
api_url |
The URI of the |
|
|
visible_by_employee |
Indicates if the |
|
true |
HTTP 200 OK:
HTTP/1.1 200 OK
{
"id": "678",
"form": {
"slug": "onboarding-form",
"title": "Welcome!!",
"category": {
"slug": "onboarding",
"name": "OnBoarding Section!",
"language_code": "en",
"description": "..."
},
"featured": false,
"total_hits": 5678,
"updated_at": "2012-01-01T12:00:00+00:00",
"created_at": "2012-01-01T12:00:00+00:00",
"api_url": "https://API_DOMAIN/api/forms/:slug/",
}
"subject": "Ticket subject",
"body": "<div>...</div>",
"body_json": {
"start_vacation_date": "2012-01-01T12:00:00+00:00",
"comment": "Thank you for validating this request \n Regards",
"file_employee_vacation_status": "/ticket/requests/567/file/56789/"
},
"origin": "PEOPLASK",
"status": "closed",
"custom_state": "",
"category": "Vacancies",
"employee": {
"technical_id": "NT7896789",
"first_name": "Bill",
"last_name": "Riveman",
"email": "[email protected]"
},
"creator": {
"technical_id": "H86789678",
"first_name": "Jonh",
"last_name": "Steinberg",
"email": "[email protected]"
},
"managers_assigned": [
{
"technical_id": "KLU907",
"first_name": "Natalie",
"last_name": "Steinberg",
"email": "[email protected]"
},
{
"technical_id": "HG789Y79",
"first_name": "Manuel",
"last_name": "Bisho",
"email": "[email protected]"
}
],
"processing_date_due": "2012-01-01T12:00:00+00:00",
"processing_start_date": "2012-01-01T12:00:00+00:00",
"created_at": "2012-01-01T12:00:00+00:00",
"updated_at": "2012-01-01T12:00:00+00:00",
"closed_by": {
"technical_id": "KLU907",
"first_name": "Natalie",
"last_name": "Steinberg",
"email": "[email protected]"
},
"closed_at": "2012-01-01T12:00:00+00:00",
"api_url": "https://API_DOMAIN/api/request/18/",
"manager_url": "https://CLIENT-SUBDOMAIN/manager/request/18/",
"employee_url": "https://CLIENT-SUBDOMAIN/employee/request/18/",
"visible_by_employee": true
}
HTTP 400 Bad Request: Invalid parameters.
For validation errors, the body of the response contains the list of
errors
. An optional errorcode
andmessage
can be specified.HTTP 400 Bad Request [ {"start_vacation_date": ["is mandatory"]}, {"end_vacation_date": ["is not a valid date format"]}, {"employee_technical_id": ["employee not found"]}, {"creator_technical_id": ["manager not found"]}, {"base": ["a global form validation error (for instance cross parameter validations)"]} ]
HTTP 403 Forbidden: Authentication failed.
{ "detail": "Forbidden." }
curl -v -X POST "https://peopleask.net/api/requests/" \
-H "Content-type: multipart/form-data" \
-H "Accept: application/json" \
-H "X-API-KEY: XXXXXXXXXXXXXX" \
-F "[email protected]" \
-F "employee_technical_id=GE15961891" \
-F "creator_technical_id=GE15961891" \
-F "form_code=vacation_request" \
-F "vacation_date_start=2012-01-01T12:00:00+00:00" \
-F "body=Vacances" \
-F "subject=Demande de vacance pour février"
This method gets all the information of a specific request
GET /api/requests/:id/
Accept: application/json
Content-Type: application/json
X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx
The response is encoded in the JSON format with the following parameters:
Parameter |
Description |
Type |
Exemple |
---|---|---|---|
id |
The id of the request |
|
789 |
form |
Code of the form |
|
{…} |
subject |
Subject of the request (can be set by the creator of the request or automatically generated depending on the form) |
|
What’s the company vacation policy? |
body |
Request body (html) |
|
… long body …. |
body_json |
Request body (json), if the form is a custom form |
|
… |
origin |
Origin (can be set by the creator of the request if the request is pmade by a manager) |
|
PEOPLASK |
status |
State of the request |
|
created |
custom_state |
Custom state of the request (possibly set in the processing rules) |
|
Manager validation pending |
employee |
Employee related to this request |
|
{…} |
creator |
Creator of this request (can be the employee himself, or a manager) |
|
{…} |
managers_assigned |
List of managers assigned to this request (at the time of the API call) |
|
[{…},{…},…] |
processing_date_due |
Due date of this request (can be calculated / overridden by a automatic processing rule) |
|
2012-01-01T12:00:00+00:00 |
processing_start_date |
Processing start date of this request (can be calculated / overridden by a automatic processing rule) |
|
2012-01-01T12:00:00+00:00 |
created_at |
Creation date of this request (date of the api call) |
|
2012-01-01T12:00:00+00:00 |
updated_at |
Last update of the request |
|
2012-01-01T12:00:00+00:00 |
closed_by |
The manager who closed the request if the request is closed and if known. If it has been reopened, then closed again, the last manager who closed the request is returned. |
|
{…} |
closed_at |
Last date the request has been closed |
|
2012-01-01T12:00:00+00:00 |
manager_url |
The URL of the |
|
|
employee_url |
The URL of the |
|
|
api_url |
The URI of the |
|
|
visible_by_employee |
Indicates if the |
|
true |
HTTP 200 OK:
HTTP/1.1 200 OK
{
"id": "678",
"form": {
"slug": "onboarding-form",
"title": "Welcome!!",
"category": {
"slug": "onboarding",
"name": "OnBoarding Section!",
"language_code": "en",
"description": "..."
},
"featured": false,
"total_hits": 5678,
"updated_at": "2012-01-01T12:00:00+00:00",
"created_at": "2012-01-01T12:00:00+00:00",
"api_url": "https://API_DOMAIN/api/forms/:slug/",
}
"subject": "Ticket subject",
"body": "<div>...</div>",
"body_json": {
"start_vacation_date": "2012-01-01T12:00:00+00:00",
"comment": "Thank you for validating this request \n Regards",
"file_employee_vacation_status": "/ticket/requests/567/file/56789/"
},
"origin": "PEOPLASK",
"status": "closed",
"custom_state": "",
"category": "Vacancies",
"employee": {
"technical_id": "NT7896789",
"first_name": "Bill",
"last_name": "Riveman",
"email": "[email protected]"
},
"creator": {
"technical_id": "H86789678",
"first_name": "Jonh",
"last_name": "Steinberg",
"email": "[email protected]"
},
"managers_assigned": [
{
"technical_id": "KLU907",
"first_name": "Natalie",
"last_name": "Steinberg",
"email": "[email protected]"
},
{
"technical_id": "HG789Y79",
"first_name": "Manuel",
"last_name": "Bisho",
"email": "[email protected]"
}
],
"processing_date_due": "2012-01-01T12:00:00+00:00",
"processing_start_date": "2012-01-01T12:00:00+00:00",
"created_at": "2012-01-01T12:00:00+00:00",
"updated_at": "2012-01-01T12:00:00+00:00",
"closed_by": {
"technical_id": "KLU907",
"first_name": "Natalie",
"last_name": "Steinberg",
"email": "[email protected]"
},
"closed_at": "2012-01-01T12:00:00+00:00",
"api_url": "https://API_DOMAIN/api/request/18/",
"manager_url": "https://CLIENT-SUBDOMAIN/manager/request/18/",
"employee_url": "https://CLIENT-SUBDOMAIN/employee/request/18/",
"visible_by_employee": true
}
HTTP 400 Bad Request: Invalid parameters.
HTTP 404 Not Found: Request id not found.
HTTP 403 Forbidden: Authentication failed.
curl -v -X GET "https://peopleask.net/api/requests/567/" \
-H "Content-type: multipart/form-data" \
-H "Accept: application/json" \
-H "X-API-KEY: XXXXXXXXXXXXXX"
This method returns all requests based the query parameters.
GET /api/requests/?...
Accept: application/json
Content-Type: application/json
X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx
Search filters:
Parameter |
Description |
Type |
mandatory |
Exemple |
---|---|---|---|---|
form_code |
Code of the form |
|
|
form_code: onboarding |
employee_technical_id |
Filter request of this employee |
|
|
employee_technical_id: XAQ678900 |
creator_technical_id |
Filter request created by this user (can be an employee or a manager) |
|
|
creator_technical_id: XAQ678900 |
status |
Status of the request. Can be |
|
|
status: created |
origin |
Origin of the request. Can be |
|
|
origin: PEOPLASK |
created_at_since |
Minimum date of creation |
|
|
created_at_since: 2012-01-01T12:00:00+00:00 |
created_at_until |
Maximum date of creation |
|
|
created_at_until: 2012-01-01T12:00:00+00:00 |
closed_at_since |
Minimum closing date |
|
|
closed_at_since: 2012-01-01T12:00:00+00:00 |
closed_at_until |
Maximum closing date |
|
|
closed_at_until: 2012-01-01T12:00:00+00:00 |
visible_by_technical_id |
Filter requests visible by this employee |
|
|
visible_by_technical_id: XAQ678900 |
visible_by_novacore_uuid |
Filter requests visible by this employee |
|
|
visible_by_novacore_uuid: 5da3506e-14ce-4478-8d6b-b345671adb22 |
Ordering and pagination:
Parameter |
Description |
Type |
mandatory |
Exemple |
---|---|---|---|---|
order_by |
Ordering rule. Specify an attribute of a request, with a possible unary negative to imply descending sort order. |
|
|
order_by: -created_at |
per_page |
Number of request per page (defaults to 20, max 100) |
|
|
per_page: 50 |
page |
Page number (defaults to 1) |
|
|
page: 2 |
The response is encoded in the JSON format with the following parameters and is a list of request objects with the following attributes:
Parameter |
Description |
Type |
Exemple |
---|---|---|---|
id |
The id of the request |
|
789 |
form |
Code of the form |
|
{…} |
subject |
Subject of the request (can be set by the creator of the request or automatically generated depending on the form) |
|
What’s the company vacation policy? |
body |
Request body (html) |
|
… long body …. |
body_json |
Request body (json), if the form is a custom form |
|
… |
origin |
Origin (can be set by the creator of the request if the request is pmade by a manager) |
|
PEOPLASK |
status |
State of the request |
|
created |
custom_state |
Custom state of the request (possibly set in the processing rules) |
|
Manager validation pending |
employee |
Employee related to this request |
|
{…} |
creator |
Creator of this request (can be the employee himself, or a manager) |
|
{…} |
managers_assigned |
List of managers assigned to this request (at the time of the API call) |
|
[{…},{…},…] |
processing_date_due |
Due date of this request (can be calculated / overridden by a automatic processing rule) |
|
2012-01-01T12:00:00+00:00 |
processing_start_date |
Processing start date of this request (can be calculated / overridden by a automatic processing rule) |
|
2012-01-01T12:00:00+00:00 |
created_at |
Creation date of this request (date of the api call) |
|
2012-01-01T12:00:00+00:00 |
updated_at |
Last update of the request |
|
2012-01-01T12:00:00+00:00 |
closed_by |
The manager who closed the request if the request is closed and if known. If it has been reopened, then closed again, the last manager who closed the request is returned. |
|
{…} |
closed_at |
Last date the request has been closed |
|
2012-01-01T12:00:00+00:00 |
manager_url |
The URL of the |
|
|
employee_url |
The URL of the |
|
|
api_url |
The URI of the |
|
|
visible_by_employee |
Indicates if the |
|
true |
For instance:
HTTP 200 OK:
HTTP/1.1 200 OK
Link: <https://BASE_URL/manager/requests/?page=2&per_page=30>; rel="previous",
<https://BASE_URL/manager/requests/?page=4&per_page=30>; rel="next"
X-Total-Count: 158
[
{request_object_1},
...,
{request_object_2}
]
Where request_object_x is a json like this:
{
"id": "678",
"form": {
"slug": "onboarding-form",
"title": "Welcome!!",
"category": {
"slug": "onboarding",
"name": "OnBoarding Section!",
"language_code": "en",
"description": "..."
},
"featured": false,
"total_hits": 5678,
"updated_at": "2012-01-01T12:00:00+00:00",
"created_at": "2012-01-01T12:00:00+00:00",
"api_url": "https://API_DOMAIN/api/forms/:slug/",
}
"subject": "Ticket subject",
"body": "<div>...</div>",
"body_json": {
"start_vacation_date": "2012-01-01T12:00:00+00:00",
"comment": "Thank you for validating this request \n Regards",
"file_employee_vacation_status": "/ticket/requests/567/file/56789/"
},
"origin": "PEOPLASK",
"status": "closed",
"custom_state": "",
"category": "Vacancies",
"employee": {
"technical_id": "NT7896789",
"first_name": "Bill",
"last_name": "Riveman",
"email": "[email protected]"
},
"creator": {
"technical_id": "H86789678",
"first_name": "Jonh",
"last_name": "Steinberg",
"email": "[email protected]"
},
"managers_assigned": [
{
"technical_id": "KLU907",
"first_name": "Natalie",
"last_name": "Steinberg",
"email": "[email protected]"
},
{
"technical_id": "HG789Y79",
"first_name": "Manuel",
"last_name": "Bisho",
"email": "[email protected]"
}
],
"processing_date_due": "2012-01-01T12:00:00+00:00",
"processing_start_date": "2012-01-01T12:00:00+00:00",
"created_at": "2012-01-01T12:00:00+00:00",
"updated_at": "2012-01-01T12:00:00+00:00",
"closed_by": {
"technical_id": "KLU907",
"first_name": "Natalie",
"last_name": "Steinberg",
"email": "[email protected]"
},
"closed_at": "2012-01-01T12:00:00+00:00",
"api_url": "https://API_DOMAIN/api/request/18/",
"manager_url": "https://CLIENT-SUBDOMAIN/manager/request/18/",
"employee_url": "https://CLIENT-SUBDOMAIN/employee/request/18/",
"visible_by_employee": true
}
curl -v -X GET "https://peopleask.net/api/requests/?form_code=onboarding&status=closed&closed_at_since=2012-01-01T00:00:00+00:00&closed_at_until=2012-01-02T00:00:00+00:00&order_by=-closed_at" \
-H "Content-type: application/json" \
-H "Accept: application/json" \
-H "X-API-KEY: XXXXXXXXXXXXXX"
A Link Request
in UKG HR Service Delivery links two tickets together, without
any order.
GET /api/links/:id:/
Accept: application/json
Content-Type: application/json
X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx
The response is encoded in the JSON format with the following parameters:
Parameter |
Description |
Type |
Exemple |
---|---|---|---|
id |
Identifier of the |
|
190 |
from_request |
Request object JSON serialized, no order with the to_request, can be switched |
|
{ … } |
to_request |
Request object JSON serialized, no order with the from_request, can be switched |
|
{ … } |
udpated_at |
Last update of the |
|
2016-02-09T17:35:36.028602+00:00 |
created_at |
The slug of the form, wich is the default unique identifier used in the URI for this form |
|
2016-02-09T17:36:14.579663+00:00 |
HTTP 200 OK:
HTTP/1.1 200 OK
{
"created_at": "2016-02-23T13:55:16.861345+00:00",
"from_request": {
"api_url": "https://API_DOMAIN//api/requests/192/",
"body": "",
"body_json": {},
"closed_at": "2016-10-04T14:51:24.201230+00:00",
"closed_by": null,
"created_at": "2016-02-09T17:36:14.710912+00:00",
"creator": {
"email": "[email protected]",
"first_name": "Daryl",
"last_name": "Lehner",
"novacore_uuid": "9ba364ae-9e46-4d99-91cd-c0f8940c2e72",
"technical_id": "Magni quidem culpa modi amet pro"
},
"custom_state": "",
"employee": {
"email": "[email protected]",
"first_name": "Joey",
"last_name": "Jewess",
"novacore_uuid": "5da3506e-14ce-4478-8d6b-b345671adb22",
"technical_id": "Corpori"
},
"employee_url": "https://API_DOMAIN//employee/request/192/",
"form": {
"api_url": "https://API_DOMAIN//api/forms/a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je/",
"category": {
"description": "",
"language_code": "pt-br",
"name": "Cupidita",
"slug": "sckq3elbeo7oann2d4wie8ph7mhzggo2tn13"
},
"created_at": "2016-02-09T17:35:35.831318+00:00",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nAd animi nihil nemo illum alias quo laudantium expedita reiciendis, voluptates modi ab porro sit necessitatibus facere a esse ad, natus accusamus debitis aliquid nulla, voluptatibus at cum id in fugiat qui culpa libero dicta sint suscipit? Tenetur temporibus velit aspernatur libero minima quibusdam repudiandae dicta molestias quos, optio quasi cumque officia pariatur, facere cumque placeat sed nisi porro quas.\n\nLaborum iure quia enim numquam, maiores ad praesentium aut quod quaerat sequi vero ea ipsum, voluptas nobis sapiente porro culpa aspernatur modi non eius cumque doloremque quos? Unde a aspernatur cum quas, beatae asperiores architecto voluptatem.",
"employee_url": "https://API_DOMAIN//employee/request/form-create/a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je/",
"featured": false,
"manager_url": "https://API_DOMAIN//administration/form/a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je/edit/",
"slug": "a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je",
"title": "Harum et alias dicta rem quas laudantium, quia aperiam cumque perspiciatis, ipsum atque simili",
"total_hits": 0,
"updated_at": "2016-02-09T17:35:36.028602+00:00"
},
"id": 192,
"manager_url": "https://API_DOMAIN//manager/request/192/",
"managers_assigned": "https://API_DOMAIN//api/requests/192/managers/",
"origin": "MAIL",
"priority": "NORMAL",
"processing_date_due": "2016-12-19T13:55:02.201295+00:00",
"processing_start_date": "2012-12-26T16:58:15.201264+00:00",
"status": "opened",
"subject": "Deleniti deserunt dolor amet facere accusantium corporis laborum cum qui ratione libero, quasi a laudantium vitae, ipsa numquam vero minus aliquid. Ipsum quidem ea fugit voluptatum magni blanditiis doloremque quam veniam, be",
"updated_at": "2016-02-09T17:36:14.833647+00:00"
},
"id": 2,
"to_request": {
"api_url": "https://API_DOMAIN//api/requests/190/",
"body": "",
"body_json": {},
"closed_at": "2016-07-25T22:41:37.201230+00:00",
"closed_by": null,
"created_at": "2016-02-09T17:36:14.579663+00:00",
"creator": {
"email": "[email protected]",
"first_name": "Doshia",
"last_name": "Powlowski",
"novacore_uuid": "cf2f0332-53db-4944-a483-b240dd554605",
"technical_id": "Aliquam consectetur quod aperi"
},
"custom_state": "",
"employee": {
"email": "[email protected]",
"first_name": "Lila",
"last_name": "Quitzon",
"novacore_uuid": "3dda7673-894f-42e0-8ea3-386d43379623",
"technical_id": "Tempora doloribus quod q"
},
"employee_url": "https://API_DOMAIN//employee/request/190/",
"form": {
"api_url": "https://API_DOMAIN//api/forms/64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych/",
"category": {
"description": "",
"language_code": "es",
"name": "Consect",
"slug": "rf8ziojxid53lm8wb4332z0kh3"
},
"created_at": "2016-02-09T17:35:15.649009+00:00",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nEnim quidem culpa consequuntur ad porro nemo, rerum mollitia ipsam suscipit dolorum labore?\n\nRepellat reiciendis veritatis ducimus praesentium natus laborum deserunt optio iste commodi doloribus, exercitationem voluptate recusandae nesciunt quaerat sit asperiores at quasi, quasi esse accusantium odit in consequuntur consectetur, laboriosam reiciendis vero ratione illo, cum nostrum libero sit sunt natus consequatur officiis iste fugiat cumque quasi. Obcaecati quos velit praesentium eos ad nisi, soluta tempora suscipit eveniet ad porro aliquid. Unde alias officiis nulla eaque nobis veniam consequuntur, voluptate tempora officia maiores sapiente iste, dolor illo cum excepturi incidunt, ipsam ad est asperiores nisi tempore a, laudantium atque animi fugit? Animi facilis omnis quam vitae explicabo at aliquid ut blanditiis ipsam, distinctio illum ad laudantium vel dolor libero impedit, asperiores reprehenderit architecto similique facilis pariatur, doloremque magni harum voluptas laudantium ullam porro obcaecati odio corporis dolorem molestias, repellendus recusandae vel cupiditate eveniet delectus esse accusamus nesciunt voluptates vero blanditiis.",
"employee_url": "https://API_DOMAIN//employee/request/form-create/64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych/",
"featured": false,
"manager_url": "https://API_DOMAIN//administration/form/64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych/edit/",
"slug": "64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych",
"title": "Quos aperiam et iure ducimus fugit atque dignissimos commodi nisi. Exercitationem consequuntur dicta veniam alias nam repudiandae iste sapiente? Magni velit dele",
"total_hits": 0,
"updated_at": "2016-02-09T17:35:15.837998+00:00"
},
"id": 190,
"manager_url": "https://API_DOMAIN//manager/request/190/",
"managers_assigned": "https://API_DOMAIN//api/requests/190/managers/",
"origin": "MAIL",
"priority": "NORMAL",
"processing_date_due": "2013-06-26T17:08:54.201295+00:00",
"processing_start_date": "2012-04-12T04:27:42.201264+00:00",
"status": "created",
"subject": "Voluptatum tenetur tempora ut, aliquid alias temporibus beatae cum modi dolorum quo, eligendi officia deleniti repellendus reprehenderit autem. Magni id dolores tempore doloremque quod eius fuga explicabo laborum porro sit, modi",
"updated_at": "2016-02-09T17:36:14.648572+00:00"
},
"updated_at": "2016-02-23T13:55:16.861368+00:00"
}
curl -v -X GET "https://peopleask.net/api/links/190/" \
-H "Content-type: multipart/form-data" \
-H "Accept: application/json" \
-H "X-API-KEY: XXXXXXXXXXXXXX"
POST /api/links/:id:/
Accept: application/json
Content-Type: application/json
X-API-KEY: xxxxxxxxxxxxxxxxxxxxxxxxxxx
The body POST request is JSON serialized with these parameters:
Parameter |
Description |
Type |
Exemple |
---|---|---|---|
from_request_id |
The identifier of the request to link from. This can be switched with the |
|
190 |
to_request_id |
The identifier of the request to link to. This can be switched with the |
|
188 |
HTTP 201 CREATED:
HTTP/1.1 201 CREATED
{
"created_at": "2016-02-23T13:55:16.861345+00:00",
"from_request": {
"api_url": "http://peopleask.local/api/requests/192/",
"body": "",
"body_json": {},
"closed_at": "2016-10-04T14:51:24.201230+00:00",
"closed_by": null,
"created_at": "2016-02-09T17:36:14.710912+00:00",
"creator": {
"email": "[email protected]",
"first_name": "Daryl",
"last_name": "Lehner",
"novacore_uuid": "9ba364ae-9e46-4d99-91cd-c0f8940c2e72",
"technical_id": "Magni quidem culpa modi amet pro"
},
"custom_state": "",
"employee": {
"email": "[email protected]",
"first_name": "Joey",
"last_name": "Jewess",
"novacore_uuid": "5da3506e-14ce-4478-8d6b-b345671adb22",
"technical_id": "Corpori"
},
"employee_url": "http://peopleask.local/employee/request/192/",
"form": {
"api_url": "http://peopleask.local/api/forms/a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je/",
"category": {
"description": "",
"language_code": "pt-br",
"name": "Cupidita",
"slug": "sckq3elbeo7oann2d4wie8ph7mhzggo2tn13"
},
"created_at": "2016-02-09T17:35:35.831318+00:00",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nAd animi nihil nemo illum alias quo laudantium expedita reiciendis, voluptates modi ab porro sit necessitatibus facere a esse ad, natus accusamus debitis aliquid nulla, voluptatibus at cum id in fugiat qui culpa libero dicta sint suscipit? Tenetur temporibus velit aspernatur libero minima quibusdam repudiandae dicta molestias quos, optio quasi cumque officia pariatur, facere cumque placeat sed nisi porro quas.\n\nLaborum iure quia enim numquam, maiores ad praesentium aut quod quaerat sequi vero ea ipsum, voluptas nobis sapiente porro culpa aspernatur modi non eius cumque doloremque quos? Unde a aspernatur cum quas, beatae asperiores architecto voluptatem.",
"employee_url": "http://peopleask.local/employee/request/form-create/a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je/",
"featured": false,
"manager_url": "http://peopleask.local/administration/form/a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je/edit/",
"slug": "a6awcis70fy9jwbe5uoxgnz4zukngcy4oihd6i9mvlcsuz7-amo-y4z5zgu7ima335mnantsxh7jntfbgf3nbx--j512no9t8yt3je",
"title": "Harum et alias dicta rem quas laudantium, quia aperiam cumque perspiciatis, ipsum atque simili",
"total_hits": 0,
"updated_at": "2016-02-09T17:35:36.028602+00:00"
},
"id": 192,
"manager_url": "http://peopleask.local/manager/request/192/",
"managers_assigned": "http://peopleask.local/api/requests/192/managers/",
"origin": "MAIL",
"priority": "NORMAL",
"processing_date_due": "2016-12-19T13:55:02.201295+00:00",
"processing_start_date": "2012-12-26T16:58:15.201264+00:00",
"status": "opened",
"subject": "Deleniti deserunt dolor amet facere accusantium corporis laborum cum qui ratione libero, quasi a laudantium vitae, ipsa numquam vero minus aliquid. Ipsum quidem ea fugit voluptatum magni blanditiis doloremque quam veniam, be",
"updated_at": "2016-02-09T17:36:14.833647+00:00"
},
"id": 2,
"to_request": {
"api_url": "http://peopleask.local/api/requests/190/",
"body": "",
"body_json": {},
"closed_at": "2016-07-25T22:41:37.201230+00:00",
"closed_by": null,
"created_at": "2016-02-09T17:36:14.579663+00:00",
"creator": {
"email": "[email protected]",
"first_name": "Doshia",
"last_name": "Powlowski",
"novacore_uuid": "cf2f0332-53db-4944-a483-b240dd554605",
"technical_id": "Aliquam consectetur quod aperi"
},
"custom_state": "",
"employee": {
"email": "[email protected]",
"first_name": "Lila",
"last_name": "Quitzon",
"novacore_uuid": "3dda7673-894f-42e0-8ea3-386d43379623",
"technical_id": "Tempora doloribus quod q"
},
"employee_url": "http://peopleask.local/employee/request/190/",
"form": {
"api_url": "http://peopleask.local/api/forms/64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych/",
"category": {
"description": "",
"language_code": "es",
"name": "Consect",
"slug": "rf8ziojxid53lm8wb4332z0kh3"
},
"created_at": "2016-02-09T17:35:15.649009+00:00",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nEnim quidem culpa consequuntur ad porro nemo, rerum mollitia ipsam suscipit dolorum labore?\n\nRepellat reiciendis veritatis ducimus praesentium natus laborum deserunt optio iste commodi doloribus, exercitationem voluptate recusandae nesciunt quaerat sit asperiores at quasi, quasi esse accusantium odit in consequuntur consectetur, laboriosam reiciendis vero ratione illo, cum nostrum libero sit sunt natus consequatur officiis iste fugiat cumque quasi. Obcaecati quos velit praesentium eos ad nisi, soluta tempora suscipit eveniet ad porro aliquid. Unde alias officiis nulla eaque nobis veniam consequuntur, voluptate tempora officia maiores sapiente iste, dolor illo cum excepturi incidunt, ipsam ad est asperiores nisi tempore a, laudantium atque animi fugit? Animi facilis omnis quam vitae explicabo at aliquid ut blanditiis ipsam, distinctio illum ad laudantium vel dolor libero impedit, asperiores reprehenderit architecto similique facilis pariatur, doloremque magni harum voluptas laudantium ullam porro obcaecati odio corporis dolorem molestias, repellendus recusandae vel cupiditate eveniet delectus esse accusamus nesciunt voluptates vero blanditiis.",
"employee_url": "http://peopleask.local/employee/request/form-create/64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych/",
"featured": false,
"manager_url": "http://peopleask.local/administration/form/64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych/edit/",
"slug": "64jis6-f6w4dhb69gyg3nwda7mwgx3ha00zmo0-o2f7q38748ogx-p1-ghaq9xrn5gobbh1kobfp795biiml2ohv9-knw4z3-d981dm65aim9e70-si4dhqqf1cv10luamf9cgt5b80bcbk30m64curc8psl20tbgoeobkc77pcu0g9m7u0h8jb7x9s6n-7yz8xlqdsnfo7a1-lcz-ych",
"title": "Quos aperiam et iure ducimus fugit atque dignissimos commodi nisi. Exercitationem consequuntur dicta veniam alias nam repudiandae iste sapiente? Magni velit dele",
"total_hits": 0,
"updated_at": "2016-02-09T17:35:15.837998+00:00"
},
"id": 190,
"manager_url": "http://peopleask.local/manager/request/190/",
"managers_assigned": "http://peopleask.local/api/requests/190/managers/",
"origin": "MAIL",
"priority": "NORMAL",
"processing_date_due": "2013-06-26T17:08:54.201295+00:00",
"processing_start_date": "2012-04-12T04:27:42.201264+00:00",
"status": "created",
"subject": "Voluptatum tenetur tempora ut, aliquid alias temporibus beatae cum modi dolorum quo, eligendi officia deleniti repellendus reprehenderit autem. Magni id dolores tempore doloremque quod eius fuga explicabo laborum porro sit, modi",
"updated_at": "2016-02-09T17:36:14.648572+00:00"
},
"updated_at": "2016-02-23T13:55:16.861368+00:00"
}
curl -v -X POST "https://peopleask.net/api/links/" \
-H "Content-type: application/json" \
-H "Accept: application/json" \
-H "X-API-KEY: XXXXXXXXXXXXXX"
-d '{
"from_request_id": "186",
"to_request_id": "192"
}'