post https://api.fulcrumapp.com/api/v2/changesets.json
API Library Examples
from fulcrum import Fulcrum
fulcrum = Fulcrum('{token}')
obj = {
"changeset": {
"form_id": "my-form-id",
"metadata": {
"comment": "Daily status update",
"app_created_by": "ACME Engineering",
"app_name": "Fulcrum Update Script"
}
}
}
changeset = fulcrum.changesets.create(obj)
print(changeset['changeset']['id'] + ' has been created!')
const { Client } = require('fulcrum-app');
const client = new Client('{token}');
const obj = {
"form_id": "my-form-id",
"metadata": {
"comment": "Daily status update",
"app_created_by": "ACME Engineering",
"app_name": "Fulcrum Update Script"
}
};
client.changesets.create(obj)
.then((changeset) => {
console.log(changeset.id + ' has been created!');
})
.catch((error) => {
console.log(error.message);
});
require 'fulcrum'
client = Fulcrum::Client.new('{token}')
changeset = {
"form_id"=>"my-form-id",
"metadata"=>{
"comment"=>"Daily status update",
"app_created_by"=>"ACME Engineering",
"app_name"=>"Fulcrum Update Script"
}
}
response = client.changesets.create(changeset)
puts response['id'] + ' has been created!'