---
title: "Upload attachements for a specific support case."
method: POST
path: "/portal_services/support_cases/upload"
tags: ["portal_services"]
---

# Upload attachements for a specific support case.

`POST /portal_services/support_cases/upload`

Given an intentful spec, trigger ncc health check and log uploads for a specified support case.

## Request body

- SupportCaseUploadIntentInput — An intentful representation of a support_case_upload
  - `spec` SupportCaseUpload, required — Support Case upload spec.
    - `resources` object, required — Support Case upload resource definition.
      - `portal_request_params` GenericKeyValuePair — Generic key value pair used for custom attributes.
      - `log_collector` LogCollectorSupportCaseUpload — Log Collector object.
        - `start_time` string, date-time — Start time of the schedule. The time should be specified in this manner. date-fullyear(4digit) "-" date-month(2digit) "-" date-mday(2digit) "T" time-hour(2digit) ":" time-minute(2digit) ":" time-second(2digit) [.] "Z" or ("+" / "-") time-hour(2digit) ":" time-minute(2digit) Examples - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 This represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
        - `end_time` string, date-time — End time of the schedule. The time should be specified in this manner. date-fullyear(4digit) "-" date-month(2digit) "-" date-mday(2digit) "T" time-hour(2digit) ":" time-minute(2digit) ":" time-second(2digit) [.] "Z" or ("+" / "-") time-hour(2digit) ":" time-minute(2digit) Examples - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 This represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
        - `anonymize_output` boolean — Flag for anonymized log collection.
        - `num_hours` integer — Number of hours for which log has to be collected. Starts from current time - no_of_hours till current time.
      - `ncc_checks` NccChecksSupportCaseUpload — Input for execution of NCC checks.
        - `ncc_check_list` string[] — List of ncc checks to run.
        - `should_send_email` boolean — Flag specifying whether an email is to be sent.
      - `case_number` string — Support Case Number. This is the pretty version of case as visible to the user. Example "00151752"
  - `api_version` string
  - `metadata` SupportCaseUploadMetadata, required — The support_case_upload kind metadata
    - `last_update_time` string, date-time — UTC date and time in RFC-3339 format when support_case_upload was last updated
    - `kind` string, required — The kind name
    - `uuid` string, UUID — support_case_upload uuid
    - `spec_version` integer — Version number of the latest spec.
    - `creation_time` string, date-time — UTC date and time in RFC-3339 format when support_case_upload was created
    - `spec_hash` string — Hash of the spec. This will be returned from server.
    - `should_force_translate` boolean — Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema.
    - `owner_reference` UserReference — The reference to a user
      - `kind` string, required — The kind name
      - `name` string
      - `uuid` string, UUID, required
    - `categories` object — Categories for the support_case_upload
    - `name` string — support_case_upload name

## Response `202`

Success

- SupportCaseUploadIntentResponse — Response object for intentful operations on a support_case_upload
  - `status` SupportCaseUploadDefStatus — Support Case upload status.
    - `resources` object, required — Definition of support case.
      - `portal_request_params` GenericKeyValuePair — Generic key value pair used for custom attributes.
      - `log_collector` LogCollectorSupportCaseUpload — Log Collector object.
        - `start_time` string, date-time — Start time of the schedule. The time should be specified in this manner. date-fullyear(4digit) "-" date-month(2digit) "-" date-mday(2digit) "T" time-hour(2digit) ":" time-minute(2digit) ":" time-second(2digit) [.] "Z" or ("+" / "-") time-hour(2digit) ":" time-minute(2digit) Examples - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 This represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
        - `end_time` string, date-time — End time of the schedule. The time should be specified in this manner. date-fullyear(4digit) "-" date-month(2digit) "-" date-mday(2digit) "T" time-hour(2digit) ":" time-minute(2digit) ":" time-second(2digit) [.] "Z" or ("+" / "-") time-hour(2digit) ":" time-minute(2digit) Examples - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 This represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
        - `anonymize_output` boolean — Flag for anonymized log collection.
        - `num_hours` integer — Number of hours for which log has to be collected. Starts from current time - no_of_hours till current time.
      - `ncc_checks` NccChecksSupportCaseUpload — Input for execution of NCC checks.
        - `ncc_check_list` string[] — List of ncc checks to run.
        - `should_send_email` boolean — Flag specifying whether an email is to be sent.
      - `case_number` string — Support Case Number. This is the pretty version of case as visible to the user. Example "00151752"
  - `spec` SupportCaseUpload — Support Case upload spec.
    - `resources` object, required — Support Case upload resource definition.
      - `portal_request_params` GenericKeyValuePair — Generic key value pair used for custom attributes.
      - `log_collector` LogCollectorSupportCaseUpload — Log Collector object.
        - `start_time` string, date-time — Start time of the schedule. The time should be specified in this manner. date-fullyear(4digit) "-" date-month(2digit) "-" date-mday(2digit) "T" time-hour(2digit) ":" time-minute(2digit) ":" time-second(2digit) [.] "Z" or ("+" / "-") time-hour(2digit) ":" time-minute(2digit) Examples - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 This represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
        - `end_time` string, date-time — End time of the schedule. The time should be specified in this manner. date-fullyear(4digit) "-" date-month(2digit) "-" date-mday(2digit) "T" time-hour(2digit) ":" time-minute(2digit) ":" time-second(2digit) [.] "Z" or ("+" / "-") time-hour(2digit) ":" time-minute(2digit) Examples - 1985-04-12T23:20:50.52Z represents 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. - 1996-12-19T16:39:57-08:00 This represents 39 minutes and 57 seconds after the 16th hour of December 19th, 1996 with an offset of -08:00 from UTC (Pacific Standard Time). Note that this is equivalent to 1996-12-20T00:39:57Z in UTC.
        - `anonymize_output` boolean — Flag for anonymized log collection.
        - `num_hours` integer — Number of hours for which log has to be collected. Starts from current time - no_of_hours till current time.
      - `ncc_checks` NccChecksSupportCaseUpload — Input for execution of NCC checks.
        - `ncc_check_list` string[] — List of ncc checks to run.
        - `should_send_email` boolean — Flag specifying whether an email is to be sent.
      - `case_number` string — Support Case Number. This is the pretty version of case as visible to the user. Example "00151752"
  - `api_version` string, required
  - `metadata` SupportCaseUploadMetadata, required — The support_case_upload kind metadata
    - `last_update_time` string, date-time — UTC date and time in RFC-3339 format when support_case_upload was last updated
    - `kind` string, required — The kind name
    - `uuid` string, UUID — support_case_upload uuid
    - `spec_version` integer — Version number of the latest spec.
    - `creation_time` string, date-time — UTC date and time in RFC-3339 format when support_case_upload was created
    - `spec_hash` string — Hash of the spec. This will be returned from server.
    - `should_force_translate` boolean — Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema.
    - `owner_reference` UserReference — The reference to a user
      - `kind` string, required — The kind name
      - `name` string
      - `uuid` string, UUID, required
    - `categories` object — Categories for the support_case_upload
    - `name` string — support_case_upload name

## Other responses

- `default` — Internal Error

---

[API](https://skmtc.net/nutanix/apis/nutanix-intentful-api.md) · [All operations](https://skmtc.net/nutanix/apis/nutanix-intentful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nutanix/nutanix-intentful-api/revisions/40395083ab31/schema)
