Update Authorization

API Library Examples

from fulcrum import Fulcrum
fulcrum = Fulcrum('{token}')

obj = {
  "authorization": {
    "organization_id": "organization-id-from-get-user",
    "note": "Updated Authorization"
  }
}

authorization = fulcrum.authorizations.update('{id}', obj)
print(authorization['authorization']['id'] + ' has been updated!')
const { Client } = require('fulcrum-app');
const client = new Client('{token}');

const obj = {
  "organization_id": "organization-id-from-get-user",
  "note": "Updated Authorization"
};

client.authorizations.update('{id}', obj)
  .then((authorization) => {
    console.log(authorization.id + ' has been updated!');
  })
  .catch((error) => {
    console.log(error.message);
  });
require 'fulcrum'

client = Fulcrum::Client.new('{token}')

authorization = {
  "organization_id"=>"organization-id-from-get-user",
  "note"=>"Updated Authorization"
};

response = client.authorizations.update('{id}', authorization)

puts response['id'] + ' has been updated!'
Language
Credentials
Header
Click Try It! to start a request and see the response here!