• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Question change subscription expire date via API

Hello @msf grg

Expiration date is a limit. So just replace [placeholders] with your values:
Code:
<packet>
<webspace>
   <set>
      <filter>
        <id>[YOUR_SUBSCRIPTION_ID]</id>
      </filter>
      <values>
        <limits>
          <limit>
            <name>expiration</name>
            <value>[TIME_IN_UNIX_TIMESTAMP_FORMAT]</value>
          </limit>
        </limits>
      </values>
   </set>
</webspace>
</packet>
 
Back
Top