Method: organizations.sites.file.post

Uploads a file to the portal.

HTTP request

POST https://apigee.googleapis.com/v1/{parent=organizations/*/sites/*}/file/post

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Name of the portal. Use the following structure in your request: organizations/{org}/sites/{site}

Request body

The request body contains an instance of HttpBody.

Response body

If successful, the response body contains data with the following structure:

JSON representation
{
  "data": {
    object (FileData)
  },
  "errorCode": string,
  "message": string,
  "requestId": string,
  "status": string
}
Fields
data

object (FileData)

Details for the file.

errorCode

string

ID that can be used to find errors in the log files.

message

string

Description of the operation.

requestId

string

ID that can be used to find request details in the log files.

status

string

Status of the operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform