SetDevToArticlePublished

Publishes (and un-publishes) an article by its id ($articleId).

You can find or create your DEV.to API keys in the settings menu on dev.to

mutation SetDevToArticlePublished( $apiKey: String! $articleId: Int! $isPublished: Boolean! ) { devTo(auths: { devToAuth: { apiKey: $apiKey } }) { setArticlePublished( input: { id: $articleId, published: $isPublished } ) { article { bodyHtml bodyMarkdown id slug tags publishedAt publishedTimestamp url } } } }
Types used in this example
Mutation

No description

String

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Int

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Boolean

The Boolean scalar type represents true or false.

DevToMutation

The root for DevTo mutations

OneGraphServiceAuths

No description

OneGraphDevToAuthArg

No description

DevToSetArticlePublishedPayload

Payload for the setArticlePublished mutation.

DevToArticle

No description

____________________________________________________________________________________________________