# Device Recipe Actions Details on the various actions that can be performed on the Device Recipe resource, including the expected parameters and the potential responses. ##### Contents * [Bulk Create](#bulk-create) * [Delete](#delete) * [Get](#get) * [Patch](#patch)
## Bulk Create Bulk creates devices using this recipe from a CSV ```ruby result = client.device_recipe.bulk_create( applicationId: my_application_id, deviceRecipeId: my_device_recipe_id, bulkInfo: my_bulk_info) puts result ``` #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 | | deviceRecipeId | string | Y | ID associated with the device recipe | | 575ecec57ae143cd83dc4a9f | | bulkInfo | [Device Recipe Bulk Create Post](_schemas.md#device-recipe-bulk-create-post) | Y | Object containing bulk creation info | | [Device Recipe Bulk Create Post Example](_schemas.md#device-recipe-bulk-create-post-example) | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 201 | [Device Recipe Bulk Create](_schemas.md#device-recipe-bulk-create) | If devices were successfully created | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if device recipe was not found |
## Delete Deletes a device recipe ```ruby result = client.device_recipe.delete( applicationId: my_application_id, deviceRecipeId: my_device_recipe_id) puts result ``` #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 | | deviceRecipeId | string | Y | ID associated with the device recipe | | 575ecec57ae143cd83dc4a9f | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Success](_schemas.md#success) | If device recipe was successfully deleted | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if device recipe was not found |
## Get Retrieves information on a device recipe ```ruby result = client.device_recipe.get( applicationId: my_application_id, deviceRecipeId: my_device_recipe_id) puts result ``` #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 | | deviceRecipeId | string | Y | ID associated with the device recipe | | 575ecec57ae143cd83dc4a9f | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Device Recipe](_schemas.md#device-recipe) | Device recipe information | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if device recipe was not found |
## Patch Updates information about a device recipe ```ruby result = client.device_recipe.patch( applicationId: my_application_id, deviceRecipeId: my_device_recipe_id, deviceRecipe: my_device_recipe) puts result ``` #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | applicationId | string | Y | ID associated with the application | | 575ec8687ae143cd83dc4a97 | | deviceRecipeId | string | Y | ID associated with the device recipe | | 575ecec57ae143cd83dc4a9f | | deviceRecipe | [Device Recipe Patch](_schemas.md#device-recipe-patch) | Y | Object containing new properties of the device recipe | | [Device Recipe Patch Example](_schemas.md#device-recipe-patch-example) | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Device Recipe](_schemas.md#device-recipe) | Updated device recipe information | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if device recipe was not found |