Sign in

Create asset

documented

Create a new asset with a type and associated fields.

POST /assetsAssetsno implementation yet0 runs
No 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.formitize.com/v1/assets" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"name":"{{$name}}","description":"{{$description}}","asset_type_id":{{$asset_type_id}},"client_id":{{$client_id}},"location":{"latitude":{{$latitude}},"longitude":{{$longitude}}},"custom_fields":{"field_1":"{{$custom_field_1}}","field_2":"{{$custom_field_2}}"}}'