Update Role
PATCHhttps://secure.fleetio.com/api/v1/roles/:id
Update a Role.
Request
Path Parameters
Possible values: Value must match regular expression ^[0-9]+$
The id of the relevant record
- application/json
Body
The name for this Role.
Whether this Role will be applied as the default Role for new Users
.
false
A description of this Role.
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Possible values: [full
, some
, none
]
none
Responses
- 200
- 401
- 403
- 404
- 422
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 1
The date and time at which this record was created.
2023-03-14T13:46:27-06:00
The date and time at which this record was most recently updated.
2023-03-14T13:46:27-06:00
The name of this Role.
The description of this Role.
Whether this Role is applied as the default Role for new Users
.
Indicates whether this role is a standard Fleetio role, or created by a user.
Possible values: [StandardRole
, CustomRole
]
module_access objectrequired
module_permissions objectrequired
{
"id": 0,
"created_at": "2023-03-14T13:46:27-06:00",
"updated_at": "2023-03-14T13:46:27-06:00",
"name": "string",
"description": "string",
"default": true,
"type": "StandardRole",
"module_access": {
"contact_renewal_reminders_access": "none",
"contacts_access": "none",
"dashboards_access": "none",
"documents_access": "none",
"equipments_access": "none",
"expense_entries_access": "none",
"faults_access": "none",
"fuel_entries_access": "none",
"inspections_access": "none",
"integrations_access": "none",
"issues_access": "none",
"location_entries_access": "none",
"meter_entries_access": "none",
"msi_access": "none",
"parts_inventory_access": "none",
"places_access": "none",
"purchase_orders_access": "none",
"recalls_access": "none",
"reports_access": "none",
"service_entries_access": "none",
"service_programs_access": "none",
"service_reminders_access": "none",
"service_task_management_access": "none",
"vehicle_renewal_reminders_access": "none",
"vehicles_access": "none",
"vendors_access": "none",
"work_orders_access": "none"
},
"module_permissions": {
"vehicles_create": true,
"vehicles_edit": true,
"vehicles_archive_delete": true,
"vehicles_update_status": true,
"vehicles_manage_vehicle_assignment": true,
"vehicles_view_details": true,
"vehicles_view_financial_info": true,
"vehicles_view_custom_fields": true,
"vehicles_view_documents": true,
"vehicles_manage_documents": true,
"vehicles_manage_photos": true,
"vehicles_export_data": true,
"equipments_create": true,
"equipments_view_details": true,
"equipments_view_financial_info": true,
"equipments_view_custom_fields": true,
"equipments_export_data": true,
"equipments_view_documents": true,
"equipments_manage_documents": true,
"equipments_manage_photos": true,
"equipments_archive_delete": true,
"equipments_edit": true,
"equipments_update_status": true,
"equipments_manage_assignments": true,
"meter_entries_create": true,
"meter_entries_view": true,
"meter_entries_export_data": true,
"meter_entries_edit": true,
"meter_entries_delete": true,
"fuel_entries_create": true,
"fuel_entries_view": true,
"fuel_entries_export_data": true,
"fuel_entries_edit": true,
"fuel_entries_delete": true,
"issues_create": true,
"issues_view_open": true,
"issues_view_resolved_or_closed": true,
"issues_export_data": true,
"issues_edit": true,
"issues_delete": true,
"issues_view_documents": true,
"issues_manage_documents": true,
"faults_view": true,
"faults_export_data": true,
"faults_ignore_codes": true,
"recalls_view": true,
"recalls_export_data": true,
"recalls_ignore": true,
"service_tasks_create": true,
"service_tasks_edit": true,
"service_tasks_archive_delete": true,
"service_entries_create": true,
"service_entries_view": true,
"service_entries_view_update_cost_information": true,
"service_entries_export_data": true,
"service_entries_edit": true,
"service_entries_delete": true,
"service_entries_view_documents": true,
"service_entries_manage_documents": true,
"work_orders_create": true,
"work_orders_view_incomplete": true,
"work_orders_view_completed": true,
"work_orders_view_update_cost_information": true,
"work_orders_export_data": true,
"work_orders_edit": true,
"work_orders_manage_labor_time_entries": true,
"work_orders_delete": true,
"work_orders_view_documents": true,
"work_orders_manage_documents": true,
"inspections_manage_inspection_forms": true,
"inspections_manage_schedules": true,
"inspections_submit_inspections": true,
"inspections_view_submissions": true,
"inspections_export_data": true,
"inspections_edit_submissions": true,
"inspections_delete_submissions": true,
"msi_manage_payment_profile": true,
"msi_manage_ro_notifications": true,
"msi_view_account_details": true,
"msi_view_account_summary": true,
"msi_view_repair_order_notifications": true,
"msi_view_statements": true,
"msi_view_transactions": true,
"service_reminders_create": true,
"service_reminders_view": true,
"service_reminders_export_data": true,
"service_reminders_edit": true,
"service_reminders_delete": true,
"service_programs_create_update": true,
"service_programs_view": true,
"vehicle_renewal_reminders_create": true,
"vehicle_renewal_reminders_view": true,
"vehicle_renewal_reminders_export_data": true,
"vehicle_renewal_reminders_edit": true,
"vehicle_renewal_reminders_delete": true,
"contacts_create": true,
"contacts_edit": true,
"contacts_view_basic_info": true,
"contacts_view_contact_and_personal_info": true,
"contacts_view_custom_fields": true,
"contacts_export_data": true,
"contacts_archive_delete": true,
"contacts_view_documents": true,
"contacts_manage_documents": true,
"contacts_manage_photos": true,
"contact_renewal_reminders_create": true,
"contact_renewal_reminders_view": true,
"contact_renewal_reminders_export_data": true,
"contact_renewal_reminders_edit": true,
"contact_renewal_reminders_delete": true,
"vendors_create": true,
"vendors_view": true,
"vendors_export_data": true,
"vendors_edit": true,
"vendors_delete": true,
"vendors_view_documents": true,
"vendors_manage_documents": true,
"vendors_manage_photos": true,
"parts_inventory_create_parts": true,
"parts_inventory_edit_parts": true,
"parts_inventory_update_inventory_quantities": true,
"parts_inventory_view_part_details": true,
"parts_inventory_view_part_activity": true,
"parts_inventory_export_data": true,
"parts_inventory_archive_delete_parts": true,
"parts_inventory_view_documents": true,
"parts_inventory_manage_documents": true,
"purchase_orders_create_update": true,
"purchase_orders_delete": true,
"purchase_orders_view": true,
"purchase_orders_export_data": true,
"purchase_orders_receive": true,
"purchase_orders_approve": true,
"reports_vehicles": true,
"reports_contacts": true,
"reports_parts": true,
"reports_view_external_reports": true,
"reports_shared": true,
"places_create": true,
"places_view": true,
"places_export_data": true,
"places_edit": true,
"places_delete": true,
"location_entries_create": true,
"location_entries_view": true,
"location_entries_edit": true,
"location_entries_delete": true,
"expense_entries_create": true,
"expense_entries_view": true,
"expense_entries_export_data": true,
"expense_entries_edit": true,
"expense_entries_delete": true,
"dashboards_manage": true,
"dashboards_share": true,
"documents_view_global_documents": true,
"documents_manage_global_documents": true,
"gps_manage_devices": true
}
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Insufficient permission to perform this operation
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
The requested resource could not be located
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Unprocessable Entity
- application/json
- Schema
- Example (auto)
- Example
Schema
errors object
{
"errors": {}
}
{
"errors": {
"field1": [
"error1",
"error2"
],
"field2": [
"error3"
]
}
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64". You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
- curl
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L -X PATCH 'https://secure.fleetio.com/api/v1/roles/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"name": "string",
"default": false,
"description": "string",
"contact_renewal_reminders_access": "none",
"contacts_access": "none",
"dashboards_access": "none",
"documents_access": "none",
"equipments_access": "none",
"expense_entries_access": "none",
"faults_access": "none",
"fuel_entries_access": "none",
"inspections_access": "none",
"integrations_access": "none",
"issues_access": "none",
"location_entries_access": "none",
"meter_entries_access": "none",
"msi_access": "none",
"parts_inventory_access": "none",
"places_access": "none",
"purchase_orders_access": "none",
"recalls_access": "none",
"reports_access": "none",
"service_entries_access": "none",
"service_programs_access": "none",
"service_reminders_access": "none",
"service_task_management_access": "none",
"vehicle_renewal_reminders_access": "none",
"vehicles_access": "none",
"vendors_access": "none",
"work_orders_access": "none",
"vehicles_create": true,
"vehicles_edit": true,
"vehicles_archive_delete": true,
"vehicles_update_status": true,
"vehicles_manage_vehicle_assignment": true,
"vehicles_view_details": true,
"vehicles_view_financial_info": true,
"vehicles_view_custom_fields": true,
"vehicles_view_documents": true,
"vehicles_manage_documents": true,
"vehicles_manage_photos": true,
"vehicles_export_data": true,
"equipments_create": true,
"equipments_view_details": true,
"equipments_view_financial_info": true,
"equipments_view_custom_fields": true,
"equipments_export_data": true,
"equipments_view_documents": true,
"equipments_manage_documents": true,
"equipments_manage_photos": true,
"equipments_archive_delete": true,
"equipments_edit": true,
"equipments_update_status": true,
"equipments_manage_assignments": true,
"meter_entries_create": true,
"meter_entries_view": true,
"meter_entries_export_data": true,
"meter_entries_edit": true,
"meter_entries_delete": true,
"fuel_entries_create": true,
"fuel_entries_view": true,
"fuel_entries_export_data": true,
"fuel_entries_edit": true,
"fuel_entries_delete": true,
"issues_create": true,
"issues_view_open": true,
"issues_view_resolved_or_closed": true,
"issues_export_data": true,
"issues_edit": true,
"issues_delete": true,
"issues_view_documents": true,
"issues_manage_documents": true,
"faults_view": true,
"faults_export_data": true,
"faults_ignore_codes": true,
"recalls_view": true,
"recalls_export_data": true,
"recalls_ignore": true,
"service_tasks_create": true,
"service_tasks_edit": true,
"service_tasks_archive_delete": true,
"service_entries_create": true,
"service_entries_view": true,
"service_entries_view_update_cost_information": true,
"service_entries_export_data": true,
"service_entries_edit": true,
"service_entries_delete": true,
"service_entries_view_documents": true,
"service_entries_manage_documents": true,
"work_orders_create": true,
"work_orders_view_incomplete": true,
"work_orders_view_completed": true,
"work_orders_view_update_cost_information": true,
"work_orders_export_data": true,
"work_orders_edit": true,
"work_orders_manage_labor_time_entries": true,
"work_orders_delete": true,
"work_orders_view_documents": true,
"work_orders_manage_documents": true,
"inspections_manage_inspection_forms": true,
"inspections_manage_schedules": true,
"inspections_submit_inspections": true,
"inspections_view_submissions": true,
"inspections_export_data": true,
"inspections_edit_submissions": true,
"inspections_delete_submissions": true,
"msi_manage_payment_profile": true,
"msi_manage_ro_notifications": true,
"msi_view_account_details": true,
"msi_view_account_summary": true,
"msi_view_repair_order_notifications": true,
"msi_view_statements": true,
"msi_view_transactions": true,
"service_reminders_create": true,
"service_reminders_view": true,
"service_reminders_export_data": true,
"service_reminders_edit": true,
"service_reminders_delete": true,
"service_programs_create_update": true,
"service_programs_view": true,
"vehicle_renewal_reminders_create": true,
"vehicle_renewal_reminders_view": true,
"vehicle_renewal_reminders_export_data": true,
"vehicle_renewal_reminders_edit": true,
"vehicle_renewal_reminders_delete": true,
"contacts_create": true,
"contacts_edit": true,
"contacts_view_basic_info": true,
"contacts_view_contact_and_personal_info": true,
"contacts_view_custom_fields": true,
"contacts_export_data": true,
"contacts_archive_delete": true,
"contacts_view_documents": true,
"contacts_manage_documents": true,
"contacts_manage_photos": true,
"contact_renewal_reminders_create": true,
"contact_renewal_reminders_view": true,
"contact_renewal_reminders_export_data": true,
"contact_renewal_reminders_edit": true,
"contact_renewal_reminders_delete": true,
"vendors_create": true,
"vendors_view": true,
"vendors_export_data": true,
"vendors_edit": true,
"vendors_delete": true,
"vendors_view_documents": true,
"vendors_manage_documents": true,
"vendors_manage_photos": true,
"parts_inventory_create_parts": true,
"parts_inventory_edit_parts": true,
"parts_inventory_update_inventory_quantities": true,
"parts_inventory_view_part_details": true,
"parts_inventory_view_part_activity": true,
"parts_inventory_export_data": true,
"parts_inventory_archive_delete_parts": true,
"parts_inventory_view_documents": true,
"parts_inventory_manage_documents": true,
"purchase_orders_create_update": true,
"purchase_orders_delete": true,
"purchase_orders_view": true,
"purchase_orders_export_data": true,
"purchase_orders_receive": true,
"purchase_orders_approve": true,
"reports_vehicles": true,
"reports_contacts": true,
"reports_parts": true,
"reports_view_external_reports": true,
"reports_shared": true,
"places_create": true,
"places_view": true,
"places_export_data": true,
"places_edit": true,
"places_delete": true,
"location_entries_create": true,
"location_entries_view": true,
"location_entries_edit": true,
"location_entries_delete": true,
"expense_entries_create": true,
"expense_entries_view": true,
"expense_entries_export_data": true,
"expense_entries_edit": true,
"expense_entries_delete": true,
"dashboards_manage": true,
"dashboards_share": true,
"documents_view_global_documents": true,
"documents_manage_global_documents": true,
"gps_manage_devices": true
}'