{ "opencollection": "1.0.0", "info": { "name": "Automile ClientApi ResourceOwnerContact2 API", "version": "v1" }, "items": [ { "info": { "name": "ResourceOwnerContact2", "type": "folder" }, "items": [ { "info": { "name": "Get a list of all contacts that user is associated with", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/resourceowner/contacts2" }, "docs": "Only companies that the user is associated with will be returned by this operation." }, { "info": { "name": "Creates a new contact", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/resourceowner/contacts2" }, "docs": "Creates a new contact" }, { "info": { "name": "Get a contact by id", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/resourceowner/contacts2/:contactId", "params": [ { "name": "contactId", "value": "", "type": "path", "description": "The contact id" } ] }, "docs": "The user only has access to companies that it is associated with" }, { "info": { "name": "Updates the given contact id", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/v1/resourceowner/contacts2/:contactId", "params": [ { "name": "contactId", "value": "", "type": "path", "description": "The contact that should be updated" } ] }, "docs": "This will update the contact with the new model." }, { "info": { "name": "Removes the given contact", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/v1/resourceowner/contacts2/:contactId", "params": [ { "name": "contactId", "value": "", "type": "path", "description": "The company id" } ] }, "docs": "Removes the given contact" }, { "info": { "name": "Get the contact representing myself", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/resourceowner/contacts2/me" }, "docs": "Get the contact representing myself" }, { "info": { "name": "Get contact profile image", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/resourceowner/contacts2/me/image", "params": [ { "name": "imageType", "value": "", "type": "query", "description": "enum ApiImageType" } ] }, "docs": "This will get the contact profile image, image data is returned in the response content" }, { "info": { "name": "Upload contact profile image", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/resourceowner/contacts2/me/uploadimage" }, "docs": "This updates the contact profile image" }, { "info": { "name": "Removes the users profile image\"", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/v1/resourceowner/contacts2/me/removeimage" }, "docs": "This removes the contact profile image" }, { "info": { "name": "UpdateRfidResourceOwnerContact2", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/resourceowner/contacts2/update-rfid" } }, { "info": { "name": "Updates the default vehicle", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/v1/resourceowner/contacts2/me/updatedefaultvehicle/:vehicleId", "params": [ { "name": "vehicleId", "value": "", "type": "path", "description": "The vehicle id" } ] }, "docs": "This will update the default vehicle" }, { "info": { "name": "Updates the default vehicle", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/v1/resourceowner/contacts2/updatedefaultvehicle/:vehicleId", "params": [ { "name": "vehicleId", "value": "", "type": "path", "description": "The vehicle id" } ] }, "docs": "This will update the default vehicle" }, { "info": { "name": "Add and remove custom categories", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/v1/resourceowner/contacts2/customcategory" }, "docs": "Add and remove custom categories" }, { "info": { "name": "Get a custom category", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/resourceowner/contacts2/:contactId/customcategories/:customCategoryId", "params": [ { "name": "contactId", "value": "", "type": "path" }, { "name": "customCategoryId", "value": "", "type": "path" } ] }, "docs": "Get a custom category" }, { "info": { "name": "Get a all custom categories", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/v1/resourceowner/contacts2/:contactId/customcategories", "params": [ { "name": "contactId", "value": "", "type": "path" } ] }, "docs": "Get a all custom categories" } ] } ], "bundled": true }