To be able to access the Performexa API, you need to have a client app created in Performexa site.
Creating Client App
Now, the following details are needed to configure the API -
Now, you need to generate a access_token to access the APIs (See Create Access Token)
Once access_token is generated, use it to access the APIs. Eg:- https://performexa.com/tasks?access_token=########
Sample API request
CURL
curl --request GET https://performexa.com/api/v1/tasks?key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 --data 'secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &access_token=333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b &filter_tasks_by=completed &limit=1 &page=1'
RUBY
api_client = Performexa::Client.instance api_client.tasks(:access_token => "333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b", :filter_tasks_by => "completed", :limit => 1, :page => 1)
Sample API Response
{
"tasks": [
{
"id": 3086,
"started_at": "2016-03-16 04:53:39 UTC",
"completed_at": "2016-03-16 04:53:46 UTC",
"user_id": 1,
"state": 9,
"assigned_by_id": 1,
"source_assignment_id": 3085,
"reviewee_id": 3,
"shared_status": 3,
"color_code": "#FFA63F",
"priority": 6,
"filled_by_id": 1,
"review_type": "Appraisal",
"chat_thread_id": null,
"review_cycle_id": 55,
"draft": false,
"last_modified_id": 1,
"self_review_end_date": null,
"reviewee_notified": false,
"hr_notified": false,
"publish_at": "2016-03-16 04:53:30 UTC",
"last_modified_at": "2016-03-16 04:53:46 UTC",
"completed_feedbacks_count": null,
"status": 1,
"shared_by_id": 1,
"cancelled_by_id": null,
"submitted_by_id": 1,
"shared_at": "2016-03-16 04:53:46 UTC",
"submitted_at": "2016-03-16 04:53:46 UTC"
}
],
"page": "1",
"limit": "1"
}
Optional Params
Required Params
Sample API request
CURL
curl --request GET https://performexa.com/api/v1/task/1?key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 --data 'secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &access_token=333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b'
RUBY
api_client = Performexa::Client.instance api_client.show_task(:access_token => "333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b", :id => 1)
Sample API Response
{
"task": {
"id": 1,
"state": 9,
"review_cycle": {
"id": 50,
"title": "Some Jan 27 - Feb 29",
"start_date": "2016-01-27",
"end_date": "2016-02-29",
"review_start_date": null,
"review_end_date": null,
"by_user": 1,
"rating_scale_id": null,
"published": true,
"self_review_end_date": "2016-02-25",
"manager_review_end_date": "2016-02-28",
"published_date": "2016-01-27"
},
"reviewers": [
{
"id": 1,
"firstname": "Performance Demonsrator1",
"lastname": "Admin Administrator Administrator Some large name given to admin for purpose of testing",
"email": "performanceadmin@learnexa.com"
}
],
"reviewee": {
"id": 8,
"firstname": "Abhisek17",
"lastname": "S",
"email": "abhisek.exp17@gmail.com"
},
"shared_status": 3,
"color_code": "#FFA63F",
"priority": 6,
"questionnaires": [
{
"id": 93,
"sections": [
{
"id": 1089,
"questions": [
{
"id": 1697,
"question": "Q1",
"question_type": "rating",
"rating_scale": {
"id": 2,
"title": "Expectation",
"scale": {
"not_applicable": 0,
"unsatisfactory": 1,
"below_expectation": 2,
"met_expectation": 3,
"met_all_expectation_and_exceeded_in_a_few": 4,
"exceptional": 5
}
}
},
{
"id": 1698,
"question": "Q2",
"question_type": "rating",
"rating_scale": {
"id": 2,
"title": "Expectation",
"scale": {
"not_applicable": 0,
"unsatisfactory": 1,
"below_expectation": 2,
"met_expectation": 3,
"met_all_expectation_and_exceeded_in_a_few": 4,
"exceptional": 5
}
}
}
]
}
]
}
],
"response_sets": [
{
"user_id": 8,
"progress": 100,
"draft": false,
"responses": [
{
"question_id": 1697,
"response": "3"
},
{
"question_id": 1698,
"response": "4"
}
]
},
{
"user_id": 1,
"progress": 100,
"draft": true,
"responses": [
{
"question_id": 1697,
"response": "3"
},
{
"question_id": 1698,
"response": "4"
}
]
}
]
}
}
Optional Params
Required Params
Sample API request
CURL
curl --request POST https://performexa.com/api/v1/share?key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 --data 'secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &access_token=333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b &id=1 &share_with=reviewee'
RUBY
api_client = Performexa::Client.instance api_client.share_task(:access_token => "333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b", :id => 1, :share_with => "reviewee")
Sample API Response
204 No content
Optional Params
Required Params
Sample API request
CURL
curl --request POST https://performexa.com/api/v1/return_task?key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 --data 'secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &access_token=333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b &id=1'
RUBY
api_client = Performexa::Client.instance api_client.return_task(:access_token => "333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b", :id => 1)
Sample API Response
204 No content
Optional Params
Required Params
Sample API request
CURL
curl --request POST https://dev01.performexa.com/api/v1/task_create_or_update?access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1
--data 'key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb
&secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608
&task_id=3334
&response_set={"responses": {"2486": "Text 5", "2487": "Text 6", "2488": "Text 7", "2489": "Text 8"}}'
RUBY
api_client = Performexa::Client.instance
api_client.task_create_or_update(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :task_id => 3334, :response_set => '{"responses": {"2486": "Text 5", "2487": "Text 6", "2488": "Text 7", "2489": "Text 8"}}')
Sample API Response
{
"task_response": {
"id": 3334,
"user_id": 1,
"responses": [
{
"question_id": 2486,
"response": "Text 5"
},
{
"question_id": 2487,
"response": "Text 6"
},
{
"question_id": 2488,
"response": "Text 7"
},
{
"question_id": 2489,
"response": "Text 8"
}
],
"response_set_id": 700
}
}
Optional Params
Required Params
Sample API request
CURL
curl --request GET https://performexa.com/api/v1/activities?access_token=b223ce698cfc1fe92b1b1c633c07ebc5eeef81b0f45e6dc1ffd632ff12fdb2d4 --data 'key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 &secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &site=https://performexa.com &limit=4 &page=1'
RUBY
api_client = Performexa::Client.instance api_client.activities(:site => "https://performexa.com", :access_token => "b223ce698cfc1fe92b1b1c633c07ebc5eeef81b0f45e6dc1ffd632ff12fdb2d4", :limit => 4, :page => 1)
Sample API Response
{
"activities": [
[
{
"owner": {
"id": 86,
"name": "Abhisek S"
},
"recipient": {
"id": 1,
"name": "Admin"
},
"statement": "Abhisek S submitted the self review to Admin",
"priority": 1,
"read": true,
"guid": "23803384-0aa3-11e6-9106-a41f725c3065"
}
],
[
{
"owner": {
"id": 6,
"name": "Yamini D"
},
"recipient": {
"id": 1,
"name": "Admin"
},
"statement": "Yamini D submitted the self review to Admin",
"priority": 1,
"read": true,
"guid": "d784ea6c-089d-11e6-a5ce-a41f725c3065"
},
{
"owner": {
"id": 3,
"name": "Satheesh K"
},
"recipient": {
"id": 1,
"name": "Admin"
},
"statement": "Satheesh K submitted feedback about Abhisek S",
"priority": 1,
"read": true,
"guid": "b1637b3e-0873-11e6-a5ce-a41f725c3065"
},
{
"owner": {
"id": 3,
"name": "Satheesh K"
},
"recipient": {
"id": 1,
"name": "Admin"
},
"statement": "Satheesh K submitted feedback about Mani M",
"priority": 1,
"read": true,
"guid": "e3f7ac08-0870-11e6-a5ce-a41f725c3065"
}
]
],
"page": "1",
"limit": "4"
}
Optional Params
Required Params
Sample API request
CURL
curl --request GET https://performexa.com/api/v1/reviews?key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 --data 'secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &access_token=333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b &site=https://performexa.com &review_cycle_id=57 &filter_id=2 &limit=4'
RUBY
api_client = Performexa::Client.instance api_client.reviews(:site => "https://performexa.com", :access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :review_cycle_id => 57, :filter_id => 2, :limit => 4)
Sample API Response
{
"review_cycle": {
"id": 57,
"start_date": "2016-05-01",
"end_date": "2016-05-31",
"self_review_end_date": "2016-05-25",
"manager_review_end_date": "2016-05-30",
"title": "FUTURE - Published 7th Mar",
"by_user": 1,
"published_date": "2016-05-01",
"published": true
},
"manager": {
"id": 1,
"firstname": "Performance",
"lastname": "Admin",
"email": "performanceadmin@learnexa.com",
"job_role": ""
},
"overall_team_appraisal_status": {
"all_users": 5,
"no_reviews": 5,
"self_review_pending": 0,
"manager_review_pending": 0,
"reviews_completed": 0,
"reviews_submitted": 0,
"appraisal_feedbacks_pending": 0
},
"members": [
{
"name": "Abhisek12 it has to be a very big and long name S now surname is also long",
"review_assigned": false,
"feedbacks_assigned": false
},
{
"name": "Abhisek13 S",
"review_assigned": false,
"feedbacks_assigned": false
},
{
"name": "Abhisek16 S",
"review_assigned": false,
"feedbacks_assigned": false
},
{
"name": "Abhisek17 S",
"review_assigned": false,
"feedbacks_assigned": false
}
],
"page": 1,
"limit": "4"
}
Optional Params
Required Params
Sample API request
CURL
curl --request POST https://performexa.com/api/v1/review_assignments?key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb --data 'secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1 &site=https://performexa.com &reviewee_ids=86,74,2 &selected_questionnaire=225 &review_cycle_id=61 &self_review_end_date=Fri, 6 May 2016'
RUBY
api_client = Performexa::Client.instance api_client.assign_review(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :site => https://performexa.com, :reviewee_ids => "86,74,2", :selected_questionnaire => "225", :review_cycle_id => 61, :self_review_end_date => "Fri, 6 May 2016")
Sample API Response
{
"review_assignment": [
{
"id": 3373
},
{
"id": 3374
},
{
"id": 3375
},
{
"id": 3376
}
]
}
Optional Params
Required Params
Sample API request
CURL
curl --request PUT https://performexa.com/api/v1/review_assignments?key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb --data 'secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1 &id=3379 &selected_questionnaire=225 &self_review_end_date=May 7, 2016'
RUBY
api_client = Performexa::Client.instance api_client.edit_review_assignment(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :id => 3379, :self_review_end_date => "May 7, 2016", :selected_questionnaire => "225")
Sample API Response
{
"review_assignment": {
"id": 3379
}
}
Optional Params
Required Params
Sample API request
CURL
curl --request DELETE https://performexa.com/api/v1/review_assignments?key=0dd8e75009e304030711d683fe5e901892d265c9d113672f81b96ce78724ac16 --data 'secret=2a24e0e3cd95cf1e78c256c53e04c8190a3f9d9f88b1b1cd83e438d65682b937 &access_token=333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b&id=1
RUBY
api_client = Performexa::Client.instance api_client.cancel_review_assignment(:access_token => "333305cd7f18e2d28e3358270e8572166a0b700dfa3c22f9f066967ea7da576b", :id => 1)
Sample API Response
204 No content
Optional Params
Required Params
Sample API request
CURL
curl --request GET https://performexa.com/api/v1/feedbacks?key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb --data 'secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1 &id=2346'
RUBY
api_client = Performexa::Client.instance api_client.feedbacks(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :id => 2346)
Sample API Response
{
"feedback_responses": [
{
"task_id": 2348,
"response_set": 470,
"progress": 100,
"responses": [
{
"response": "3",
"question_id": 1316,
"response_type": "rating"
},
{
"response": "Good",
"question_id": 1315,
"response_type": "text"
},
{
"response": "3",
"question_id": 1318,
"response_type": "rating"
},
{
"response": "4",
"question_id": 1317,
"response_type": "rating"
}
]
},
{
"task_id": 2349,
"response_set": 541,
"progress": 0,
"responses": [
{
"response": "2",
"question_id": 1316,
"response_type": "rating"
},
{
"response": "Great",
"question_id": 1315,
"response_type": "text"
},
{
"response": "3",
"question_id": 1318,
"response_type": "rating"
},
{
"response": "5",
"question_id": 1317,
"response_type": "rating"
}
]
}
]
}
Optional Params
Required Params
Sample API request
CURL
curl --request POST https://performexa.com/api/v1/feedbacks?key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb
--data 'secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1
&site=https://performexa.com &create_feedback_params={"reviewee_id":["86"], "added_questionnaires":{"0":"225", "1":"224"}, "recipient_emails":{"0":"abhiseks@expertus.com abhisek.exp12@gmail.com",
"1":"abhisek.exp13@gmail.com abhisek.exp14@gmail.com"}, "tag":["abhiseks@expertus.com", "abhisek.exp12@gmail.com", "abhisek.exp13@gmail.com", "abhisek.exp14@gmail.com"], "review_cycle_id":"92"}'
RUBY
api_client = Performexa::Client.instance
api_client.assign_feedback(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :site => "https://performexa.com",
:create_feedback_params => '{"reviewee_id":["86"], "added_questionnaires":{"0":"225", "1":"224"}, "recipient_emails":{"0":"abhiseks@expertus.com abhisek.exp12@gmail.com",
"1":"abhisek.exp13@gmail.com abhisek.exp14@gmail.com"}, "tag":["abhiseks@expertus.com", "abhisek.exp12@gmail.com", "abhisek.exp13@gmail.com", "abhisek.exp14@gmail.com"],
"review_cycle_id":"92"}')
Sample API Response
{
"feedbacks": [
{
"id": 3535
},
{
"id": 3536
},
{
"id": 3537
},
{
"id": 3538
}
]
}
Optional Params
Required Params
Sample API request
CURL
curl --request PUT https://dev01.performexa.com/api/v1/feedbacks?key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb
--data 'secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1
&site=https://dev01.performexa.com &id=3539 &update_feedback_params={"previous_invitees":{"0":"2 74", "1":"3 5"}, "previous_questionnaires":{"0":"225", "1":"224"},
"added_questionnaires":{"0":"225", "1":"223"}, "recipient_emails":{"0":"abhiseks@expertus.com", "1":"abhisek.exp13@gmail.com abhisek.exp14@gmail.com abhisek.exp15@gmail.com"},
"tag":["abhiseks@expertus.com", "abhisek.exp13@gmail.com", "abhisek.exp14@gmail.com", "abhisek.exp15@gmail.com"]}'
RUBY
api_client = Performexa::Client.instance
api_client.edit_feedback(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :id => 3539, :site => "https://dev01.performexa.com",
:update_feedback_params => '{"previous_invitees":{"0":"2 74", "1":"3 5"}, "previous_questionnaires":{"0":"225", "1":"224"}, "added_questionnaires":{"0":"225", "1":"223"},
"recipient_emails":{"0":"abhiseks@expertus.com", "1":"abhisek.exp13@gmail.com abhisek.exp14@gmail.com abhisek.exp15@gmail.com"}, "tag":["abhiseks@expertus.com", "abhisek.exp13@gmail.com",
"abhisek.exp14@gmail.com", "abhisek.exp15@gmail.com"]}')
Sample API Response
{
"feedbacks": [
{
"id": 3542
},
{
"id": 3543
},
{
"id": 3544
},
{
"id": 3545
}
]
}
Optional Params
Required Params
Sample API request
CURL
curl --request DELETE https://dev01.performexa.com/api/v1/feedbacks?key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb --data 'secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1 &id=3549'
RUBY
api_client = Performexa::Client.instance api_client.cancel_feedback(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :id => 3549)
Sample API Response
204 No content
Optional Params
Required Params
Sample API request
CURL
curl --request GET https://dev01.performexa.com/api/v1/review_cycles?access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1 --data 'key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb &secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608 &site=https://performexa.com &sort_by=title asc &limit=3 &page=1'
RUBY
api_client = Performexa::Client.instance api_client.review_cycles(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :site => "https://performexa.com", :sort_by => "title asc", :limit => 3, :page => 1)
Sample API Response
{
"review_cycles": [
{
"id": 55,
"title": "First Review Cycle",
"self_review_end_date": "2016-03-25",
"start_date": "2016-02-26",
"end_date": "2016-03-31",
"by_user": 1,
"published": true,
"manager_review_end_date": "2016-03-30"
},
{
"id": 36,
"title": "Second Review Cycle",
"published_date": "2015-06-02",
"self_review_end_date": "2016-01-15",
"start_date": "2015-06-01",
"end_date": "2016-01-31",
"by_user": 1,
"published": true,
"manager_review_end_date": "2016-01-26"
},
{
"id": 33,
"title": "Third Review Cycle",
"published_date": "2015-05-06",
"self_review_end_date": "2015-05-31",
"start_date": "2015-05-01",
"end_date": "2015-12-31",
"by_user": 1,
"published": true,
"manager_review_end_date": "2015-12-31"
}
],
"page": "1",
"limit": "3 "
}
Optional Params
Required Params
Sample API request
CURL
curl --request POST https://performexa.com/api/v1/create_review_cycle?access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1
--data 'key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb &secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608
&create_review_cycle={ "review_cycle":{"title":"Review 1", "start_date":"May 1, 2016", "end_date":"May 30, 2016", "self_review_end_date":"May 20, 2016",
"manager_review_end_date":"May 30, 2016", "published_date": "May 9, 2016", "by_user":1}, "publish_on_creation":"false"}'
RUBY
api_client = Performexa::Client.instance
api_client.create_review_cycle(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :create_review_cycle => '{"review_cycle":{"title":"Review 1", "start_date":"May 1, 2016", "end_date":"May 30, 2016", "self_review_end_date":"May 20, 2016", "manager_review_end_date":"May 30, 2016", "published_date":"May 9, 2016", "by_user":1}, "publish_on_creation":"false"}')
Sample API Response
{
"review_cycle": {
"id": 84,
"title": "Review 1",
"start_date": "2016-05-01",
"end_date": "2016-05-30",
"published_date": "2016-05-10",
"self_review_end_date": "2016-05-20",
"manager_review_end_date": "2016-05-30",
"by_user": 1,
"published": true
}
}
Optional Params
Required Params
Sample API request
CURL
curl --request PUT https://performexa.com/api/v1/update_review_cycle?access_token=994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1
--data 'key=f0381afdef0ddf50aa8c6f606676c397de08ea227441ab31225bd5a7513636fb &secret=5f577ad33d8bcc818aca97558e79bb8242511e9cc366ea2c7a0c5f8b31cc0608
&id=92 &site=https://performexa.com &update_review_cycle={"review_cycle":{"title":"Review 2", "start_date":"May 2, 2016", "end_date":"May 31, 2016",
"self_review_end_date":"May 20, 2016", "manager_review_end_date":"May 30, 2016", "published_date":"May 9, 2016", "by_user":1}, "publish_on_creation":"false"}'
RUBY
api_client = Performexa::Client.instance
api_client.update_review_cycle(:access_token => "994b3acf0a1d1ddffcad9e3f171cf80611f69066dd4b0d64668cb5d4fc7951f1", :id => 92, :site => "https://performexa.com", :update_review_cycle => '{"review_cycle":{"title":"Review 2", "start_date":"May 2, 2016", "end_date":"May 31, 2016", "self_review_end_date":"May 20, 2016", "manager_review_end_date":"May 30, 2016", "published_date":"May 9, 2016", "by_user":1}, "publish_on_creation":"false"}')
Sample API Response
{
"review_cycle": {
"id": 92,
"title": "Review 2",
"start_date": "2016-05-02",
"end_date": "2016-05-31",
"published_date": "2016-05-09",
"self_review_end_date": "2016-05-20",
"manager_review_end_date": "2016-05-30",
"by_user": 1,
"published": true
}
}