Create file association
documentedCreate a new file association.
POST /Files/{FileId}/AssociationsFilesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://api.xero.com/files.xro/1.0/Files/{{$file_id}}/Associations' \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "xero-tenant-id: {{$tenant_id}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Idempotency-Key: {{$idempotency_key}}" \
-d '{"association": {"ObjectId": "{{$object_id}}", "ObjectGroup": "{{$object_group}}"}}'