Skip to content

Instantly share code, notes, and snippets.

@nozpheratu
Created October 8, 2014 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nozpheratu/806f0380ea34694260d1 to your computer and use it in GitHub Desktop.
Save nozpheratu/806f0380ea34694260d1 to your computer and use it in GitHub Desktop.
Add Tags to contacts 404
cyle@cyle-UX302LG:~/development/ruby/gems/agilecrm-ruby-api (seperate-classes)$ curl https://mydomain.agilecrm.com/dev/api/contacts/bulk/tags -H "Accept : application/json" -d '{"tags":["Paid in December" "Not paid in March" "paid in April"], "contact_ids":[4808361379889152]}' -v -u "myemail@example.com:xxxxx" -X POST
* 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 'myemail@example.com'
> POST /dev/api/contacts/bulk/tags 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: */*
> Accept : application/json
> Content-Length: 99
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 99out of 99 bytes
< HTTP/1.1 404 Not Found
< Content-Type: text/html; charset=utf-8
< Vary: Accept-Encoding
< Date: Wed, 08 Oct 2014 17:09:13 GMT
< Server: Google Frontend
< Cache-Control: private
< Transfer-Encoding: chunked
<
<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>404 Could not find resource for relative : /api/contacts/bulk/tags of full path: https://mydomain.agilecrm.com/dev/api/contacts/bulk/tags</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Could not find resource for relative : /api/contacts/bulk/tags of full path: https://mydomain.agilecrm.com/dev/api/contacts/bulk/tags</h1>
</body></html>
* Connection #0 to host mydomain.agilecrm.com left intact
* 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