Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCU-1855

Tip for commands endpoint usage: parameters of type Date must be supplied in "millis/long" format

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • None
    • None
    • None

    Description

      It is not obvious or intuitive how to properly supply the value for a command parameter that expects a Date type.

      Include a tip on this page (and 5.7, 6.1) on how to do it: https://documentation.magnolia-cms.com/display/DOCS60/Commands+endpoint+API

      Suggestion, in the "body" parameter description, include the following:

      Request body in JSON or XML format; it contains the parameters required to execute the command.

      For commands with parameters of type Date, supply the value as a long integer with no quotes. (The number of milliseconds since 1970-01-01)

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              rgange Richard Gange
              czimmermann Christopher Zimmermann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: