Created
October 8, 2014 16:36
-
-
Save nozpheratu/71337e7f6b7031dea662 to your computer and use it in GitHub Desktop.
AgileCRM REST api bulk contact delete with DELETE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://mydomain.agilecrm.com/dev/api/contacts/bulk -d '{"model_ids" : [4808361379889152, 5069036098420736]}' -v -u "[email protected]:4uqfa24di3qhllialsr816dhdl" -X DELETE | |
* About to connect() to mydomain.agilecrm.com port 443 (#0) | |
* Trying 72.14.246.1... connected | |
* successfully set certificate verify locations: | |
* CAfile: none | |
CApath: /etc/ssl/certs | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): | |
* SSLv3, TLS handshake, CERT (11): | |
* SSLv3, TLS handshake, Server key exchange (12): | |
* SSLv3, TLS handshake, Server finished (14): | |
* SSLv3, TLS handshake, Client key exchange (16): | |
* SSLv3, TLS change cipher, Client hello (1): | |
* SSLv3, TLS handshake, Finished (20): | |
* SSLv3, TLS change cipher, Client hello (1): | |
* SSLv3, TLS handshake, Finished (20): | |
* SSL connection using ECDHE-RSA-RC4-SHA | |
* Server certificate: | |
* subject: serialNumber=w1dh1k6AtH5pZWm6IMLHz54ayydSaJ3W; OU=GT54387286; OU=See www.rapidssl.com/resources/cps (c)13; OU=Domain Control Validated - RapidSSL(R); CN=*.agilecrm.com | |
* start date: 2013-08-17 06:07:21 GMT | |
* expire date: 2015-09-20 02:08:07 GMT | |
* subjectAltName: mydomain.agilecrm.com matched | |
* issuer: C=US; O=GeoTrust, Inc.; CN=RapidSSL CA | |
* SSL certificate verify ok. | |
* Server auth using Basic with user '[email protected]' | |
> DELETE /dev/api/contacts/bulk HTTP/1.1 | |
> Authorization: Basic Y3lsZWh1bnRlckBob3RtYWlsLmNvbTo0dXFmYTI0ZGkzcWhsbGlhbHNyODE2ZGhkbA== | |
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 | |
> Host: mydomain.agilecrm.com | |
> Accept: */* | |
> Content-Length: 52 | |
> Content-Type: application/x-www-form-urlencoded | |
> | |
* upload completely sent off: 52out of 52 bytes | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 400 Bad Request | |
< Content-Type: text/html; charset=UTF-8 | |
< Content-Length: 1419 | |
< Date: Wed, 08 Oct 2014 16:35:12 GMT | |
< Server: GFE/2.0 | |
< | |
<!DOCTYPE html> | |
<html lang=en> | |
<meta charset=utf-8> | |
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width"> | |
<title>Error 400 (Bad Request)!!1</title> | |
<style> | |
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/errors/logo_sm_2.png) no-repeat}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/errors/logo_sm_2_hr.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:55px;width:150px} | |
</style> | |
<a href=//www.google.com/><span id=logo aria-label=Google></span></a> | |
<p><b>400.</b> <ins>That’s an error.</ins> | |
<p>Your client has issued a malformed or illegal request. <ins>That’s all we know.</ins> | |
* Closing connection #0 | |
* SSLv3, TLS alert, Client hello (1): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment