Put package
    • PDF

    Put package

    • PDF

    Article summary

    Available in Classic and VPC

    Create or edit a Cloud Functions package.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    PUT/packages/{packageName}

    Request headers

    For headers common to all Cloud Functions APIs, see Cloud Functions common headers.

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    packageNameStringRequiredPackage name
    • 1 to 50 characters, including English letters, numbers, and special characters "-" and "_", and it can't start with "-"

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    platformStringOptionalPlatform type
    • vpc | classic (default)

    Request body

    The following describes the request body.

    FieldTypeRequiredDescription
    descriptionStringOptionalDescription of the package (byte)
    • 0 - 3000
    parametersObjectOptionalPackage default parameters
    • JSON in the form of {"key": "value"}
    • Priority of applying parameters when running actions
      • 1st priority: runtime parameters passed at runtime
      • 2nd priority: default parameters of the associated trigger
      • 3rd priority: default parameters of the action
      • 4th priority: default parameters of the included packages

    Request example

    The following is a sample request.

    curl --location --request PUT 'https://cloudfunctions.apigw.ntruss.com/api/v2/packages/package003?platform=classic' \
    --header 'Content-Type: application/json' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Sub Account Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature} \
    --data '<See below>'
    
    {
        "description": "Create package",
        "parameters": {
            "name": "package003",
        }
    }
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeDescription
    content.descriptionStringPackage description
    content.nameStringPackage name
    content.namespaceStringUser namespace
    content.parametersObjectDefault parameter of the package
    content.resourceIdStringPackage's resource ID

    Response status codes

    For response status codes common to NAVER Cloud Platform, see Ncloud API response status codes.

    Response example

    The following is a sample response.

    {
        "content": {
            "description": "put package",
            "name": "package003",
            "namespace": "****YBN*****",
            "parameters": {
                "name": "package003"
            },
            "resourceId": "xn***"
        }
    }
    

    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.