# Task\_destinations

## Lists all task destinations.

> \*\*API Key Scope\*\*: task\_destinations / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"parameters":{"limit":{"name":"limit","in":"query","description":"The number of items to display for pagination.","schema":{"type":"integer"}},"offset":{"name":"offset","in":"query","description":"The number of items to skip for pagination.","schema":{"type":"integer"}},"sort_by":{"name":"sort_by","in":"query","description":"Sort results by attribute.\n\nCan sort on multiple attributes, separated by `|`.\nOrder direction can be suffixing the attribute by either `:asc` (default) or `:desc`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"filter_id":{"name":"id","in":"query","description":"Filter on id","schema":{"type":"string"}},"filter_folder_id":{"name":"folder_id","in":"query","description":"Filter on folder id","schema":{"type":"string"}},"filter_tape_id":{"name":"tape_id","in":"query","description":"Filter on tape id","schema":{"type":"string"}},"filter_pool_id":{"name":"pool_id","in":"query","description":"Filter on a pool id","schema":{"type":"string"}}},"responses":{"task_destinations_index":{"description":"List of task destinations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/task_destination_collection"}}}}},"schemas":{"task_destination_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"task_destinations":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/task_destination_down"}}}},"task_destination_down":{"allOf":[{"$ref":"#/components/schemas/task_destination_up"},{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"folder":{"$ref":"#/components/schemas/nodeum_file_with_path"},"container":{"$ref":"#/components/schemas/container"},"tape":{"$ref":"#/components/schemas/tape"},"pool":{"$ref":"#/components/schemas/pool"}}}]},"task_destination_up":{"type":"object","properties":{"folder_id":{"type":"integer","format":"int64"},"folder_path":{"type":"string"},"tape_id":{"type":"integer","format":"int64"},"tape_barcode":{"type":"string"},"pool_id":{"type":"integer"},"pool_name":{"type":"string"}}},"nodeum_file_with_path":{"allOf":[{"$ref":"#/components/schemas/nodeum_file"},{"type":"object","properties":{"file_path":{"type":"string","readOnly":true}}}]},"nodeum_file":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string","readOnly":true},"parent":{"type":"integer","readOnly":true,"format":"int64"},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"type":{"type":"string","readOnly":true,"enum":["file","folder"]},"permission":{"type":"integer","readOnly":true},"size":{"type":"integer","readOnly":true,"format":"int64"},"change_date":{"type":"string","readOnly":true,"format":"date-time"},"modification_date":{"type":"string","readOnly":true,"format":"date-time"},"access_date":{"type":"string","readOnly":true,"format":"date-time"},"uid":{"type":"integer","readOnly":true,"format":"int64"},"gid":{"type":"integer","readOnly":true,"format":"int64"},"in_cache":{"type":"string","readOnly":true,"enum":["out_of_cache","in_cache","deleted"]},"offline":{"type":"string","readOnly":true,"enum":["online","offline_out_of_lib","offline"]},"extern":{"type":"integer","readOnly":true},"checksums":{"type":"array","description":"Checksums on the specific location. Does not apply to all API calls","readOnly":true,"items":{"type":"string"}},"tapes":{"type":"array","description":"Tape barcode on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"cloud_buckets":{"type":"array","description":"Cloud bucket names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"nas_shares":{"type":"array","description":"NAS Share names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}}}},"container":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string"},"comment":{"type":"string"},"push_pool_id":{"type":"integer","format":"int64"},"cleaning_pool_id":{"type":"integer","format":"int64"},"quota_total_size":{"type":"integer","format":"int64"},"quota_on_cache":{"type":"integer","format":"int64"},"stat_total_files":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_count":{"type":"integer","readOnly":true,"format":"int64"},"stat_total_size":{"type":"integer","readOnly":true,"format":"int64"},"stat_size_on_cache":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_size_sum":{"type":"integer","readOnly":true,"format":"int64"},"guest_right":{"type":"string","enum":["none","read","read_write"]},"last_update":{"type":"string","readOnly":true,"format":"date-time"},"protocol_smb":{"type":"boolean"},"protocol_nfs":{"type":"boolean"},"protocol_s3":{"type":"boolean"}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}},"pool":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string"},"comment":{"type":"string"},"type":{"type":"string","enum":["active_archive","offline_archive","data_exchange","scratch","data_enrichment","primary"]},"content":{"type":"string","enum":["tape","cloud","nas"]},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","description":"For pool of tapes, used to link to a tape library id","format":"int64"},"tape_write_protect_when_full":{"type":"boolean","description":"For pool of tapes, set the tape in write-protect when it became full"},"storage_extra_data":{"$ref":"#/components/schemas/storage_extra_data","description":"Additional storage metadata"}}},"storage_extra_data":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","format":"int64"},"storage_type":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9]},"data":{"type":"string"}}}}},"paths":{"/tasks/{task_id}/task_destinations":{"get":{"summary":"Lists all task destinations.","operationId":"index_task_destinations","tags":["task_destinations"],"description":"**API Key Scope**: task_destinations / index","parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/sort_by"},{"$ref":"#/components/parameters/filter_id"},{"$ref":"#/components/parameters/filter_folder_id"},{"$ref":"#/components/parameters/filter_tape_id"},{"$ref":"#/components/parameters/filter_pool_id"}],"responses":{"200":{"$ref":"#/components/responses/task_destinations_index"}}}}}}
```

## Creates a new task destination.

> \*\*API Key Scope\*\*: task\_destinations / create

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_destinations_show":{"description":"A specific task destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/task_destination_down"}}}},"unprocessable_entity":{"description":"The received resource was not correctly formatted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"task_destination_down":{"allOf":[{"$ref":"#/components/schemas/task_destination_up"},{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"folder":{"$ref":"#/components/schemas/nodeum_file_with_path"},"container":{"$ref":"#/components/schemas/container"},"tape":{"$ref":"#/components/schemas/tape"},"pool":{"$ref":"#/components/schemas/pool"}}}]},"task_destination_up":{"type":"object","properties":{"folder_id":{"type":"integer","format":"int64"},"folder_path":{"type":"string"},"tape_id":{"type":"integer","format":"int64"},"tape_barcode":{"type":"string"},"pool_id":{"type":"integer"},"pool_name":{"type":"string"}}},"nodeum_file_with_path":{"allOf":[{"$ref":"#/components/schemas/nodeum_file"},{"type":"object","properties":{"file_path":{"type":"string","readOnly":true}}}]},"nodeum_file":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string","readOnly":true},"parent":{"type":"integer","readOnly":true,"format":"int64"},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"type":{"type":"string","readOnly":true,"enum":["file","folder"]},"permission":{"type":"integer","readOnly":true},"size":{"type":"integer","readOnly":true,"format":"int64"},"change_date":{"type":"string","readOnly":true,"format":"date-time"},"modification_date":{"type":"string","readOnly":true,"format":"date-time"},"access_date":{"type":"string","readOnly":true,"format":"date-time"},"uid":{"type":"integer","readOnly":true,"format":"int64"},"gid":{"type":"integer","readOnly":true,"format":"int64"},"in_cache":{"type":"string","readOnly":true,"enum":["out_of_cache","in_cache","deleted"]},"offline":{"type":"string","readOnly":true,"enum":["online","offline_out_of_lib","offline"]},"extern":{"type":"integer","readOnly":true},"checksums":{"type":"array","description":"Checksums on the specific location. Does not apply to all API calls","readOnly":true,"items":{"type":"string"}},"tapes":{"type":"array","description":"Tape barcode on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"cloud_buckets":{"type":"array","description":"Cloud bucket names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"nas_shares":{"type":"array","description":"NAS Share names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}}}},"container":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string"},"comment":{"type":"string"},"push_pool_id":{"type":"integer","format":"int64"},"cleaning_pool_id":{"type":"integer","format":"int64"},"quota_total_size":{"type":"integer","format":"int64"},"quota_on_cache":{"type":"integer","format":"int64"},"stat_total_files":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_count":{"type":"integer","readOnly":true,"format":"int64"},"stat_total_size":{"type":"integer","readOnly":true,"format":"int64"},"stat_size_on_cache":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_size_sum":{"type":"integer","readOnly":true,"format":"int64"},"guest_right":{"type":"string","enum":["none","read","read_write"]},"last_update":{"type":"string","readOnly":true,"format":"date-time"},"protocol_smb":{"type":"boolean"},"protocol_nfs":{"type":"boolean"},"protocol_s3":{"type":"boolean"}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}},"pool":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string"},"comment":{"type":"string"},"type":{"type":"string","enum":["active_archive","offline_archive","data_exchange","scratch","data_enrichment","primary"]},"content":{"type":"string","enum":["tape","cloud","nas"]},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","description":"For pool of tapes, used to link to a tape library id","format":"int64"},"tape_write_protect_when_full":{"type":"boolean","description":"For pool of tapes, set the tape in write-protect when it became full"},"storage_extra_data":{"$ref":"#/components/schemas/storage_extra_data","description":"Additional storage metadata"}}},"storage_extra_data":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","format":"int64"},"storage_type":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9]},"data":{"type":"string"}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}},"requestBodies":{"task_destination_body":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/task_destination_up"}}},"required":true}}},"paths":{"/tasks/{task_id}/task_destinations":{"post":{"summary":"Creates a new task destination.","operationId":"create_task_destination","description":"**API Key Scope**: task_destinations / create","tags":["task_destinations"],"responses":{"201":{"$ref":"#/components/responses/task_destinations_show"},"422":{"$ref":"#/components/responses/unprocessable_entity"}},"requestBody":{"$ref":"#/components/requestBodies/task_destination_body"}}}}}
```

## Displays a specific task destination.

> \*\*API Key Scope\*\*: task\_destinations / show

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_destinations_show":{"description":"A specific task destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/task_destination_down"}}}}},"schemas":{"task_destination_down":{"allOf":[{"$ref":"#/components/schemas/task_destination_up"},{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"folder":{"$ref":"#/components/schemas/nodeum_file_with_path"},"container":{"$ref":"#/components/schemas/container"},"tape":{"$ref":"#/components/schemas/tape"},"pool":{"$ref":"#/components/schemas/pool"}}}]},"task_destination_up":{"type":"object","properties":{"folder_id":{"type":"integer","format":"int64"},"folder_path":{"type":"string"},"tape_id":{"type":"integer","format":"int64"},"tape_barcode":{"type":"string"},"pool_id":{"type":"integer"},"pool_name":{"type":"string"}}},"nodeum_file_with_path":{"allOf":[{"$ref":"#/components/schemas/nodeum_file"},{"type":"object","properties":{"file_path":{"type":"string","readOnly":true}}}]},"nodeum_file":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string","readOnly":true},"parent":{"type":"integer","readOnly":true,"format":"int64"},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"type":{"type":"string","readOnly":true,"enum":["file","folder"]},"permission":{"type":"integer","readOnly":true},"size":{"type":"integer","readOnly":true,"format":"int64"},"change_date":{"type":"string","readOnly":true,"format":"date-time"},"modification_date":{"type":"string","readOnly":true,"format":"date-time"},"access_date":{"type":"string","readOnly":true,"format":"date-time"},"uid":{"type":"integer","readOnly":true,"format":"int64"},"gid":{"type":"integer","readOnly":true,"format":"int64"},"in_cache":{"type":"string","readOnly":true,"enum":["out_of_cache","in_cache","deleted"]},"offline":{"type":"string","readOnly":true,"enum":["online","offline_out_of_lib","offline"]},"extern":{"type":"integer","readOnly":true},"checksums":{"type":"array","description":"Checksums on the specific location. Does not apply to all API calls","readOnly":true,"items":{"type":"string"}},"tapes":{"type":"array","description":"Tape barcode on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"cloud_buckets":{"type":"array","description":"Cloud bucket names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"nas_shares":{"type":"array","description":"NAS Share names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}}}},"container":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string"},"comment":{"type":"string"},"push_pool_id":{"type":"integer","format":"int64"},"cleaning_pool_id":{"type":"integer","format":"int64"},"quota_total_size":{"type":"integer","format":"int64"},"quota_on_cache":{"type":"integer","format":"int64"},"stat_total_files":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_count":{"type":"integer","readOnly":true,"format":"int64"},"stat_total_size":{"type":"integer","readOnly":true,"format":"int64"},"stat_size_on_cache":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_size_sum":{"type":"integer","readOnly":true,"format":"int64"},"guest_right":{"type":"string","enum":["none","read","read_write"]},"last_update":{"type":"string","readOnly":true,"format":"date-time"},"protocol_smb":{"type":"boolean"},"protocol_nfs":{"type":"boolean"},"protocol_s3":{"type":"boolean"}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}},"pool":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string"},"comment":{"type":"string"},"type":{"type":"string","enum":["active_archive","offline_archive","data_exchange","scratch","data_enrichment","primary"]},"content":{"type":"string","enum":["tape","cloud","nas"]},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","description":"For pool of tapes, used to link to a tape library id","format":"int64"},"tape_write_protect_when_full":{"type":"boolean","description":"For pool of tapes, set the tape in write-protect when it became full"},"storage_extra_data":{"$ref":"#/components/schemas/storage_extra_data","description":"Additional storage metadata"}}},"storage_extra_data":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","format":"int64"},"storage_type":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9]},"data":{"type":"string"}}}}},"paths":{"/tasks/{task_id}/task_destinations/{task_destination_id}":{"get":{"summary":"Displays a specific task destination.","operationId":"show_task_destination","description":"**API Key Scope**: task_destinations / show","tags":["task_destinations"],"responses":{"200":{"$ref":"#/components/responses/task_destinations_show"}}}}}}
```

## Updates a specific task destination.

> \*\*API Key Scope\*\*: task\_destinations / update

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"task_destinations_show":{"description":"A specific task destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/task_destination_down"}}}},"unprocessable_entity":{"description":"The received resource was not correctly formatted.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/error"}}}}},"schemas":{"task_destination_down":{"allOf":[{"$ref":"#/components/schemas/task_destination_up"},{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"folder":{"$ref":"#/components/schemas/nodeum_file_with_path"},"container":{"$ref":"#/components/schemas/container"},"tape":{"$ref":"#/components/schemas/tape"},"pool":{"$ref":"#/components/schemas/pool"}}}]},"task_destination_up":{"type":"object","properties":{"folder_id":{"type":"integer","format":"int64"},"folder_path":{"type":"string"},"tape_id":{"type":"integer","format":"int64"},"tape_barcode":{"type":"string"},"pool_id":{"type":"integer"},"pool_name":{"type":"string"}}},"nodeum_file_with_path":{"allOf":[{"$ref":"#/components/schemas/nodeum_file"},{"type":"object","properties":{"file_path":{"type":"string","readOnly":true}}}]},"nodeum_file":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string","readOnly":true},"parent":{"type":"integer","readOnly":true,"format":"int64"},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"type":{"type":"string","readOnly":true,"enum":["file","folder"]},"permission":{"type":"integer","readOnly":true},"size":{"type":"integer","readOnly":true,"format":"int64"},"change_date":{"type":"string","readOnly":true,"format":"date-time"},"modification_date":{"type":"string","readOnly":true,"format":"date-time"},"access_date":{"type":"string","readOnly":true,"format":"date-time"},"uid":{"type":"integer","readOnly":true,"format":"int64"},"gid":{"type":"integer","readOnly":true,"format":"int64"},"in_cache":{"type":"string","readOnly":true,"enum":["out_of_cache","in_cache","deleted"]},"offline":{"type":"string","readOnly":true,"enum":["online","offline_out_of_lib","offline"]},"extern":{"type":"integer","readOnly":true},"checksums":{"type":"array","description":"Checksums on the specific location. Does not apply to all API calls","readOnly":true,"items":{"type":"string"}},"tapes":{"type":"array","description":"Tape barcode on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"cloud_buckets":{"type":"array","description":"Cloud bucket names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}},"nas_shares":{"type":"array","description":"NAS Share names on the specific location. Does not apply on folders. Only available on related API calls","readOnly":true,"items":{"type":"string"}}}},"container":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"name":{"type":"string"},"comment":{"type":"string"},"push_pool_id":{"type":"integer","format":"int64"},"cleaning_pool_id":{"type":"integer","format":"int64"},"quota_total_size":{"type":"integer","format":"int64"},"quota_on_cache":{"type":"integer","format":"int64"},"stat_total_files":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_count":{"type":"integer","readOnly":true,"format":"int64"},"stat_total_size":{"type":"integer","readOnly":true,"format":"int64"},"stat_size_on_cache":{"type":"integer","readOnly":true,"format":"int64"},"only_on_cache_file_size_sum":{"type":"integer","readOnly":true,"format":"int64"},"guest_right":{"type":"string","enum":["none","read","read_write"]},"last_update":{"type":"string","readOnly":true,"format":"date-time"},"protocol_smb":{"type":"boolean"},"protocol_nfs":{"type":"boolean"},"protocol_s3":{"type":"boolean"}}},"tape":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"tape_library_id":{"type":"integer","readOnly":true,"format":"int64"},"pool_id":{"type":"integer","readOnly":true},"barcode":{"type":"string","readOnly":true},"location":{"type":"string","readOnly":true},"type":{"type":"string","readOnly":true,"enum":["unknown","data","cleaning","diagnostic","data_lto1","data_lto2","data_lto3","data_lto4","data_lto5","data_lto6","data_lto7","data_lto8","data_lto8m","data_lto9","data_lto10","data_lto11","data_lto12"]},"locked":{"type":"integer","readOnly":true},"scratch":{"type":"integer","readOnly":true},"cleaning":{"type":"integer","readOnly":true},"write_protect":{"type":"array","items":{"type":"string","enum":["logical_locked","physical_locked"]},"readOnly":true},"mounted":{"type":"integer","readOnly":true},"ejected":{"type":"integer","readOnly":true},"known":{"type":"integer","readOnly":true},"mount_count":{"type":"integer","readOnly":true},"date_in":{"type":"string","readOnly":true,"format":"date-time"},"date_move":{"type":"string","readOnly":true,"format":"date-time"},"free":{"type":"integer","readOnly":true,"format":"int64"},"max":{"type":"integer","readOnly":true,"format":"int64"},"last_size_update":{"type":"string","readOnly":true,"format":"date-time"},"last_maintenance":{"type":"string","readOnly":true,"format":"date-time"},"last_repack":{"type":"string","readOnly":true,"format":"date-time"},"repack_status":{"type":"integer","readOnly":true},"force_import_type":{"type":"integer","readOnly":true},"need_to_check":{"type":"integer","readOnly":true}}},"pool":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string"},"comment":{"type":"string"},"type":{"type":"string","enum":["active_archive","offline_archive","data_exchange","scratch","data_enrichment","primary"]},"content":{"type":"string","enum":["tape","cloud","nas"]},"primary_id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","description":"For pool of tapes, used to link to a tape library id","format":"int64"},"tape_write_protect_when_full":{"type":"boolean","description":"For pool of tapes, set the tape in write-protect when it became full"},"storage_extra_data":{"$ref":"#/components/schemas/storage_extra_data","description":"Additional storage metadata"}}},"storage_extra_data":{"type":"object","properties":{"id":{"type":"integer","readOnly":true,"format":"int64"},"storage_id":{"type":"integer","format":"int64"},"storage_type":{"type":"integer","enum":[1,2,3,4,5,6,7,8,9]},"data":{"type":"string"}}},"error":{"type":"object","properties":{"details":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/attribute_error"}},"description":"Parsable objects describing the errors. The key is the invalid attribute name."},"messages":{"type":"array","description":"English description of the errors.","items":{"type":"string"}}}},"attribute_error":{"required":["error"],"type":"object","properties":{"error":{"type":"string"}},"discriminator":{"propertyName":"error"}}},"requestBodies":{"task_destination_body":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/task_destination_up"}}},"required":true}}},"paths":{"/tasks/{task_id}/task_destinations/{task_destination_id}":{"put":{"summary":"Updates a specific task destination.","operationId":"update_task_destination","description":"**API Key Scope**: task_destinations / update","tags":["task_destinations"],"responses":{"200":{"$ref":"#/components/responses/task_destinations_show"},"422":{"$ref":"#/components/responses/unprocessable_entity"}},"requestBody":{"$ref":"#/components/requestBodies/task_destination_body"}}}}}
```

## Destroys a specific task destination.

> \*\*API Key Scope\*\*: task\_destinations / destroy

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/tasks/{task_id}/task_destinations/{task_destination_id}":{"delete":{"summary":"Destroys a specific task destination.","operationId":"destroy_task_destination","description":"**API Key Scope**: task_destinations / destroy","tags":["task_destinations"],"responses":{"204":{"description":"Task destination destroyed."}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nodeum.io/data-archiving/api-developers/api-reference-nodeum-data-archiving/task_destinations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
