Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

PUT request fails with HTTP error 400 #202

@jamiebullock

Description

@jamiebullock

I have an authenticated session, which I can successfully make GET requests to the Basecamp API.

If I send a PUT request with:

r = session.put('https://3.basecampapi.com/.../mydoc.json', data='{"title":"blah","content":"test"}', params={'format': 'json'})
print r.json()

Then I receive:

{u'status': 400, u'error': u'Bad Request'}

I have tried also sending data={"title":"blah","content":"test"} but get the same error.

I am able to successfully PUT to the endpoint using CURL, e.g.

curl -s -H "Authorization: Bearer s9s9sd" -H "Content-Type: application/json" \
  -d '{"title":"blah","content":"test"}' -X PUT  https://3.basecampapi.com/...mydoc.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions