It also depends on the goal of the test. If your test goal is to know when you request that endpoint you get a response with an ID included, you're basically testing your response schema.
But you could also test:
• Response ID == Request ID
• Response ID : number
• Response ID -> exists in DB
There's a principle in Testing which explains that your tests should be deterministic. Fancy word to say your test should always return the same result if you input the same thing.
In the case 2 and 3, you would not check that your API is giving you a "wrong" ID.
I would personally have two type of tests: one generic which would test the schema, and value type, another one which test the exact response value matches what I requested, the latter could be seen more as a functional security test (you don't want a user to get data which belongs to another user...)
Hope it helps.