# POST action on a server

**URL:** <https://discuss.emberjs.com/t/post-action-on-a-server/13477>\
**Category:** Learning Team\
**Created:** [August 16, 2017, 2:40pm UTC](https://discuss.emberjs.com/t/post-action-on-a-server/13477 "2017-08-16T14:40:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiliogambone](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@emiliogambone](https://discuss.emberjs.com/u/emiliogambone)\
**Post date:** [August 16, 2017, 2:40pm UTC](https://discuss.emberjs.com/t/post-action-on-a-server/13477/1 "2017-08-16T14:40:53Z")

</div>

Hi everybody,

I’ve got this doubt: I want to send store data remotely in a server in my app, I’ve create my customize adapter and serializer. But i don 't well understand, in the method createRecord(store, type, model), that I have override in my adapter, what i should pass as these parameters.

---

<div class="post-metadata">

**Author:** ![onsmith](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/onsmith/32/13462_2.png) [@onsmith](https://discuss.emberjs.com/u/onsmith)\
**Post date:** [August 16, 2017, 3:12pm UTC](https://discuss.emberjs.com/t/post-action-on-a-server/13477/2 "2017-08-16T15:12:05Z")

</div>

As a user of ember-data, you shouldn’t ever have to call `createRecord` directly – ember-data will call `createRecord` internally any time you ask it to save a new record. You’ll save a record using `myNewRecord.save()` or something, and ember will internally call `createRecord`. Furthermore, ember will pass three parameters to `createRecord` – `store`, `type`, and `snapshot` – that hold the information needed to create the record.

Your job, if you are writing your own adapter, is to fill out `createRecord` with an AJAX call or whatever you think it needs to perform an API call that saves data remotely. Use the passed parameters `store`, `type`, and `snapshot` to access the data needed to create the record.

[Check out the example in the documentation](https://www.emberjs.com/api/ember-data/2.14/classes/DS.Adapter/methods/createRecord?anchor=createRecord) to see one possible way of filling out `createRecord`.
