Cmdlets for WordPress

Build 24.0.9062

CreateMedia

Create Media to attach in your posts.

Stored Procedure Specific Information

Call this procedure to create media. Note : Status column only accepts the following values: publish, future, draft, pending, and private. To create a media you must specify the following column: FileLocation. For example:

EXEC CreateMedia Title='MediaTitle', FileLocation='C:/myImages/image.png', Caption='This is an uploaded media.';

Input

Name Type Description
Title String The title for the object.
Date Datetime The date the object was published, in the site's timezone.
DateGMT Datetime The date the object was published, as GMT.
Status String A named status for the object.
AuthorId Integer The ID for the author of the object.
CommentStatus String Whether or not comments are open on the object.
PingStatus String Whether or not the object can be pinged.
Caption String The attachment caption.
Description String The attachment description.
PostId Integer The ID for the associated post of the attachment.
FileLocation String The location of the file to be uploaded.

Result Set Columns

Name Type Description
Success String Returns True if procedure succeeded.
Id String Id of the inserted record.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9062