Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

casting with a parent #741

Open
reza-mousapour opened this issue Jun 29, 2024 · 1 comment
Open

casting with a parent #741

reza-mousapour opened this issue Jun 29, 2024 · 1 comment
Labels
question Further information is requested

Comments

@reza-mousapour
Copy link

There is a cast(name A for example) that I have and I know its hash. I want to cast another cast(name B) and I want A to be B's parent. I tried post_cast() but I couldn't figure out how should I give the parent field true information. I have tried:
parent = hash_of _A
parent = A(the ApiCast type)
but none of them seemed to work. what is true format for doing this task? can you give me an example? I would appreciate it.

@reza-mousapour reza-mousapour added the question Further information is requested label Jun 29, 2024
@lalitmehra99
Copy link

parent = {"fid": int(parent_fid), "hash": cast_hash}
client.post_cast(text="", parent=parent)

try this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants