code: func (obj *Doc) CommitDraft(ctx context.Context, id string) error {
  	err := obj.rpc(ctx, "CommitDraft", nil, id)
  	return err 
  }
docs: // Commits the draft of an object that was previously created by invoking the CreateDraft method.
  // Committing a draft replaces the corresponding published object.
  //
  // Parameters:
  //
  // ◾ id   -   Identifier of the draft to commit.
  //