Create configuration item
documentedCreate a new configuration item.
POST /configuration_items.jsonConfiguration Itemsno 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.samanage.com/configuration_items.json" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "X-Samanage-Authorization: Bearer {{SAMANAGE_API_KEY}}" \
-d '{"configuration_item": {"name": "{{$name}}", "description": "{{$description}}", "type": {"name": "{{$type_name}}"}, "type_id": {{$type_id}}, "asset_tag": "{{$asset_tag}}", "site_id": {{$site_id}}, "department_id": {{$department_id}}, "state": "Active", "manager": {"email": "{{$manager_email}}"}, "user": {"email": "{{$user_email}}"}, "tag_list": "{{$tag_list}}", "custom_fields_values_attributes": [{"id": "{{$cf_id}}", "custom_field_id": {{$custom_field_id}}, "value": "{{$custom_field_value}}"}], "incident_ids": [{{$incident_ids}}], "release_ids": [{{$release_ids}}] }}' }