ServiceNow Cloud Agile: Rest APIs
For Dev Environment
Base URL: https://dev67343.service-now.com
username: INT_AGILE_USER_1000
Password: empyra@12#
client_id: ad549d9128433010861e34c18e629163
client_secret: S+y)oLLa^.
Login
Sl No | Entity | Method | Description | URL | Body | Response |
---|---|---|---|---|---|---|
1 | Login | POST | Login to get the token | {{base_url}}/oauth_token.do |
|
|
Epic APis
Sl No | Entity | Method | Description | URL | Body | Response |
---|---|---|---|---|---|---|
1 | Epic | GET | Read epics from the ServiceNow | {{base_url}}/api/now/table/rm_epic |
|
|
2 | Epic | POST | Create Epic in ServiceNow | {{base_url}}/api/now/table/rm_epic | {
"short_description":"postman-epic-1",
"description":"postman-epic-desc-1"
} short_description = Name of the epic description= Description of the epic
| Response Code: 201 JSON Response: details of created epic |
3 | Epic | PUT | Update epic | {{base_url}}/api/now/table/rm_epic/{{record sys_id}} For example: {{base_url}}/api/now/table/rm_epic/74df0c2f2f533010c4b04f2e2c99b6f0 | {
"short_description":"postman-epic-1000",
"description":"postman-epic-desc-1000"
}
| Response Code: 200 JSON Response: details of created epic |
4 | Epic | DELETE | Delete Epic | {{base_url}}/api/now/table/rm_epic/{{record sys_id}} Example: {{base_url}}/api/now/table/rm_epic/74df0c2f2f533010c4b04f2e2c99b6f0 |
| Response Code: 204 JSON Response: Empty |
Story Apis
Sl No | Entity | Method | Description | URL | Body | Response |
---|---|---|---|---|---|---|
1 | Story | GET | Get the list of Stories | {{base_url}}/api/now/table/rm_story
Example: https://dev67343.service-now.com/api/now/table/rm_story |
| Response Code: 200 JSON Response: json response with list of stories |
2 | Story | POST | Create Story in ServiceNow | {{base_url}}/api/now/table/rm_story Example: https://dev67343.service-now.com/api/now/table/rm_story |
| Response Code: 201 JSON Response: details of created epic |
3 | Story | PUT | Update Story in ServiceNow |
| {
"short_description":"postman-story-10001",
"description":"postman-story-desc-10001"
}
| Response Code: 200 JSON Response: details of created story |
4 | Story | DELETE | Delete story | {{base_url}}/api/now/table/rm_story/335c1c672f173010c4b04f2e2c99b6f6 Example: https://dev67343.service-now.com/api/now/table/rm_story/335c1c672f173010c4b04f2e2c99b6f6 |
| Response Code: 204 JSON Response: Empty |
|
|
|
|
|
|
|
Task
scrum_admin role is required to create the task in servicenow
Sl No | Entity | Method | Description | URL | Body | Response |
---|---|---|---|---|---|---|
1 | Task | GET | Get the list of Tasks | {{base_url}}/api/now/table/rm_task
Example: https://dev67343.service-now.com/api/now/table/rm_task |
| Response Code: 200 JSON Response: json response with list of stories |
2 | Task | POST | Create Task in ServiceNow | {{base_url}}/api/now/table/rm_task Example: https://dev67343.service-now.com/api/now/table/rm_task |
| Response Code: 201 JSON Response: details of created epic |
3 | Task | PUT | Update Story in ServiceNow | {{base_url}}/api/now/table/rm_task/2b69a0eb2f173010c4b04f2e2c99b6e0 Example: https://dev67343.service-now.com/api/now/table/rm_task/2b69a0eb2f173010c4b04f2e2c99b6e0 |
| Response Code: 200 JSON Response: details of created story |
4 | Task | DELETE | Delete story | {{base_url}}/api/now/table/rm_task/2b69a0eb2f173010c4b04f2e2c99b6e0 Example: https://dev67343.service-now.com/api/now/table/rm_task/2b69a0eb2f173010c4b04f2e2c99b6e0 |
| Response Code: 204 JSON Response: Empty |
|
|
|
|
|
|
|