diff --git a/main.go b/main.go index d88dcbd..f5a3bc0 100644 --- a/main.go +++ b/main.go @@ -366,13 +366,21 @@ func main() { fmt.Printf("New Content: %v\n", newContent) data := &goconfluence.Content{ - ID: *cPageId, + ID: c.ID, + Type: c.Type, + Title: c.Title, Body: goconfluence.Body{ Storage: goconfluence.Storage{ Value: newContent, - Representation: "storage", + Representation: c.Body.Storage.Representation, }, }, + Version: &goconfluence.Version{ + Number: c.Version.Number + 1, + }, + Space: &goconfluence.Space{ + Key: c.Space.Key, + }, } //c.Body.Storage.Value = newContent fmt.Printf("confluence object : '%v'\n", data)