# cURL create records work, but updating existing records refuse to play

**URL:** <https://community.aristotlemetadata.com/t/curl-create-records-work-but-updating-existing-records-refuse-to-play/153>\
**Category:** API & Programming\
**Created:** [August 27, 2021, 5:57am UTC](https://community.aristotlemetadata.com/t/curl-create-records-work-but-updating-existing-records-refuse-to-play/153 "2021-08-27T05:57:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.aristotlemetadata.com/michael/32/188_2.png) [@Michael](https://community.aristotlemetadata.com/u/Michael)\
**Post date:** [August 27, 2021, 5:57am UTC](https://community.aristotlemetadata.com/t/curl-create-records-work-but-updating-existing-records-refuse-to-play/153/1 "2021-08-27T05:57:50Z")

</div>

I’m probably missing something obvious, and it’s a case of the Friday afternoons… but using cURL I can easily create a new distribution record with a call like this:

> _curl --location --request POST ‘[https://dss.aristotlecloud.io/api/v4/metadata/distribution](https://dss.aristotlecloud.io/api/v4/metadata/distribution)’ --header ‘Authorization: Token enter\_some\_token\_here’ --header ‘Content-Type: application/json’ --data-raw ‘{“name”: “TEST DISTRIBUTION”, “stewardship\_organisation”: “id\_here”, “workgroup”: 100, “definition”: “Testing distribution creation via API.”, “distributiondataelementpath\_set”: [{“logical\_path”: “PATH1”}],“customvalue\_set”: [{“name”: “Physical Name”, “field”: 10, “content”: “PHYSICAL\_NAME\_HERE”}]}’_

That works everytime. However I can’t seem to use a cURL PUT call to update the record just created.

If I try:

> _curl --location -X PUT ‘[http://dss.aristotlecloud.io/api/v4/metadata/distribution/513af47e-06ee-11ec-baec-0a58a9feac02](http://dss.aristotlecloud.io/api/v4/metadata/distribution/513af47e-06ee-11ec-baec-0a58a9feac02)’ -H ‘accept: application/json’ -H ‘Content-Type: application/json’ -H ‘Authorization: Token some\_token’ -d ‘{“name”: “NEW DISTRIBUTION TEST NAME”}’_

But the error back is **{“name”:[“This field is required.”]}**. Yet I am specifying name…

Appreciate any help 🙂 )

---

<div class="post-metadata">

**Author:** ![Chengwu](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@Chengwu](https://community.aristotlemetadata.com/u/Chengwu)\
**Post date:** [September 3, 2021, 12:35am UTC](https://community.aristotlemetadata.com/t/curl-create-records-work-but-updating-existing-records-refuse-to-play/153/2 "2021-09-03T00:35:16Z")

</div>

Hello Michael,

Could you potentially try using ‘https’ instead of ‘http’ and let me know if you have any issues?

We will ensure that future http requests are redirected to https to improve the user experience with the API.

Cheers
