MENU
      setLifetime

        setLifetime


        Article summary

        Available in VPC

        Changes the Data Forest app's lifetime.

        Requests

        Request Parameters

        Parameter nameRequirement statusTypeRestrictionsDescription
        idYESStringEnter up to 22 characters.- app identifier UUID (base62)
        - id can be acquired through getList API of Apps.
        lifetimeNOInteger300 seconds-604800 secondsThe app's lifetime (unit: second)

        Request headers

        See common guide.

        Request Bodies

        • JSON
          {
              "id": "string",
              "lifetime": 0
          }
          JSON
        • XML
          <?xml version="1.0" encoding="UTF-8"?>
          <SetAppLifetimeRequest>
              <id>string</id>
              <lifetime>0</lifetime>
          </SetAppLifetimeRequest>
          XML

        Responses

        Response bodies

        • JSON
          {
          "id": "string",
          "message": "string",
          "success": true
          }
          JSON
        • XML
          <?xml version="1.0" encoding="UTF-8"?>
          <SetAppLifetimeResponse>
              <id>string</id>
              <message>string</message>
              <success>true</success>
          </SetAppLifetimeResponse>
          XML

        Errors

        See DataForest overview

        Examples

        Request Examples

        • HTTP

          POST https://df.apigw.ntruss.com/api/v2/apps/setLifetime
          HOST: df.apigw.ntruss.com
          Content-Type: application/json
          x-ncp-apigw-signature-v2: WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=
          x-ncp-apigw-timestamp: 1658898041497
          x-ncp-iam-access-key: 17F9A6E9F72BD92ED94B
          
          {
          "id": "A4LI7d5mRn1f6M2HxZAEE2",
          "lifetime": 400
          }
          HTTP
        • BASH

          curl -X POST "https://df.apigw.ntruss.com/api/v2/apps/setLifetime" \
          -H "accept: application/json" \
          -H "Content-Type: application/json" \
          -H "x-ncp-apigw-timestamp:1658898041497" \
          -H "x-ncp-iam-access-key:17F9A6E9F72BD92ED94B" \
          -H "x-ncp-apigw-signature-v2:WTPItrmMIfLUk/UyUIyoQbA/z5hq9o3G8eQMolUzTEo=" \
          -d "{ \"id\": \"A4LI7d5mRn1f6M2HxZAEE2\", \"lifetime\": 400}" \
          Bash

        Response examples

        • HTTP

          HTTP StatusDescription
          200OK
        • BASH

          {
              "success": true,
              "message": "success",
              "id": "A4LI7d5mRn1f6M2HxZAEE2"
          }
          JSON

        Was this article helpful?

        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.