[Spce-user] API Error 422 Unprocessable Unit

Javier Valencia jv at voiper.es
Mon Aug 6 08:53:41 EDT 2018


Hi there!

I'm trying to lock outgoing calls for a subscriber thru API (with 
"Content-Type: application/json-patch+json") with this body content:

    [{"op":"replace","path":"/status","value":"locked"},{"op":"replace","path":"/lock","value":"2"}]

SIPWise API return;

    {"message":"The entity could not be processed: A pointer that
    references a non-existent value (pointer: /lock)","code":"422"}

If I try the same request but with body content:

    [{"op":"replace","path":"/status","value":"locked"}]

SIPWise API return: 200 OK and subscriber.

*It's "lock" a read**only property for **subscriber **entity?*

My box is running: mr3.8.12.

Kind regards, Javier Valencia.


-- 
Logo <http://www.voiper.es/>

	
Javier Valencia | CTO
Centro de Negocios Martín Buendía
Camino de las Cañadas, nº 1C, Portal 1, 2ºG
29649 Mijas (Málaga)

# 	951562080 (T) <tel:951562080> | 687486759 (M) <tel:687486759>
# 	www.voiper.es <http://www.voiper.es/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180806/86cbafdb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hdkdjiicampcipcc.png
Type: image/png
Size: 7800 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180806/86cbafdb/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hpennmphnooklmfp.png
Type: image/png
Size: 334 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180806/86cbafdb/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oidackhgpbjbjikp.png
Type: image/png
Size: 453 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20180806/86cbafdb/attachment-0002.png>


More information about the Spce-user mailing list