Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@matthewpoer
Last active July 31, 2019 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewpoer/87b39b0339f3b4a346fff51a2076839c to your computer and use it in GitHub Desktop.
Save matthewpoer/87b39b0339f3b4a346fff51a2076839c to your computer and use it in GitHub Desktop.
curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
-d 'requestJobDescription={
"type": "update",
"credentials": {
"partnerUserID": "[redacted]",
"partnerUserSecret": "[redacted]"
},
"inputSettings": {
"type": "policy",
"policyID": "[redacted]"
},
"reportFields": {
"action": "merge",
"data": [
{
"name": "Report field 1",
"type": "dropdown",
"values": [
{
"value": "value 1",
"externalID": "1"
},
{
"value": "value 2",
"enabled": false
},
{
"value": "value 3",
"externalID": "3",
enabled: true
}
]
}
]
}'
curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
-d 'requestJobDescription={
"type": "update",
"credentials": {
"partnerUserID": "[redacted]",
"partnerUserSecret": "[redacted]"
},
"inputSettings": {
"type": "policy",
"policyID": "[redacted]"
},
"reportFields": {
"action": "merge",
"data": [
{
"name": "Report field 1",
"type": "dropdown",
"values": [
{
"value": "value 1",
"externalID": "1"
},
{
"value": "value 2",
"enabled": false
},
{
"value": "value 3",
"externalID": "3",
enabled: true
}
]
}
]
}
}'
curl -X POST 'https://integrations.expensify.com/Integration-Server/ExpensifyIntegrations' \
-d 'requestJobDescription={
"type": "update",
"credentials": {
"partnerUserID": "[redacted]",
"partnerUserSecret": "[redacted]"
},
"inputSettings": {
"type": "policy",
"policyID": "[redacted]"
},
"reportFields": {
"action": "merge",
"data": [
{
"name": "My New Field One",
"type": "dropdown",
"values": [
"New Field One Option One",
"New Field One Option Two",
"New Field One Option Three"
]
},
{
"name": "My New Field Two",
"type": "dropdown",
"values": [
"New Field Two Option One",
"New Field Two Option Two",
"New Field Two Option Three"
]
},
]
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment