<turbo-stream action="update" target="wiki_3611_3760_subpage_3766_info"><template>
<p>In the example below we create a new Transfer with a code and description.</p>
<p>The created transfer will by default have a ?Implementing? status.</p>
<p>Examples are provided in JSON and JSONAPI format.</p>
<p>NOTE: Remember to substitute the token ([API SECURITY TOKEN]) and the service id ([SERVICE ID]) to your own token and service id.</p>
<h2>JSON:</h2>
<p>Create a new transfer for service [SERVICE ID], with code "NEW_TRANSFER_CODE" and description "A new transfer".</p>
<pre class="card">curl -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json"
  -H "Accept: application/json"
  -X POST
  -d "{\"code\":\"NEW_TRANSFER_CODE\",\"description\":\"A new transfer\"} }}"
  http://staging.myrapidi.com/api/v2/service/[SERVICE ID]/transfers
</pre>
<p>The output for this example would be:</p>
<pre class="card">{
  "id": 1,
  "code": "NEW_TRANSFER_CODE",
  "description": "A new transfer",
  "status": "Implementing",
  "group": null,
  "source": null,
  "source_layout": null,
  "destination": null,
  "destination_layout": null,
  "source_table": null,
  "destination_table": null,
  "link_storage": null,
  "enabled": null,
  "update": null,
  "add": null,
  "delete": null,
  "actions": null,
  "move": null,
  "delete_all": null,
  "autogenerate_key": null,
  "disable_dest_lookup": null,
  "all_fields": false,
  "continue_on_error": null,
  "comments": []
}
</pre>

</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
