cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1728
Views
5
Helpful
2
Replies

cms api failed

ahmed
Level 1
Level 1

hi all,

i have installed cms 2.2.9 and running well now, i want to add some api command using postman.

but when i posting, i got error message invalid operatio (attached).

i just copy paste from API guide, and re spell again but still problem.

 

my steps was :

1. open https://cms ip:445/api/v1/system/profiles, then copy the callLegs ID

2. then tried GET from those callLegs ID and OK,i can see many keys and value on it

3. tried POST using same callLegs ID, but failed to post

 

 

2 Accepted Solutions

Accepted Solutions

Dennis Fogler
Cisco Employee
Cisco Employee

Ahmed,

   Try using PUT versus POST.   -Dennis

View solution in original post

Patrick Sparkman
VIP Alumni
VIP Alumni

You're modifying an existing callLeg, so you need to use PUT, instead of POST.

For reference, here are the supported API commands and which one to use when:

  • GET is used for retrieval of existing information.
  • POST is used to create new objects.
  • PUT is used to modify an existing object.
  • DELETE is used to destroy an object in the tree.

View solution in original post

2 Replies 2

Dennis Fogler
Cisco Employee
Cisco Employee

Ahmed,

   Try using PUT versus POST.   -Dennis

Patrick Sparkman
VIP Alumni
VIP Alumni

You're modifying an existing callLeg, so you need to use PUT, instead of POST.

For reference, here are the supported API commands and which one to use when:

  • GET is used for retrieval of existing information.
  • POST is used to create new objects.
  • PUT is used to modify an existing object.
  • DELETE is used to destroy an object in the tree.